Use an explicit cancellation receipt instead of a long blocking sleep in the aggregate refresh test. Treat a disconnected snapshot as a failed onboarding connection so activation and pairing cannot advance to the success screen while the selected computer is unreachable.
Multi-environment fixtures were spending four seconds per failed fake WebSocket request, and Xcode spent another 600 seconds collecting diagnostics after simulator launch failures. Use explicit loader receipts, inject a short fixture-only connection deadline, run one test host, skip verbose failure diagnostics, and cap individual test execution time.
The stale-document fallback kept any revision-mismatched render while
streaming, so a reused transcript cell whose @State survived recycling
could briefly show another message's markdown. Only accept a stale
document whose source is a prefix of the current message.
Co-Authored-By: Claude Fable 5 <[email protected]>
A cancelled drain unwinding after a replacement started could clear the
replacement's task slot, allowing two concurrent drains to deliver out
of order. Generation-stamp each drain; only the current generation may
clear the shared slot, loop, or deliver.
Co-Authored-By: Claude Fable 5 <[email protected]>
- Move streaming markdown rendering out of .task(id:) into a renderer
that survives revision changes; the per-revision task cancelled any
in-flight parse, so messages that parse slower than the publish
cadence never rendered. One render runs at a time, latest revision
wins, 150ms throttle. Keep showing the previous streamed document
between renders instead of flashing back to plain text.
- Cap the terminal buffer in UTF-8 bytes (the unit the limit is defined
in) instead of Character count, snapping to a character boundary.
- Start the home list timer after items are populated so an initially
working thread gets the 1Hz interval; re-evaluate on every update.
- Sort activities by memoized parsed dates (stable, wire-order ties);
raw ISO strings sort wrong across mixed fractional representations.
Co-Authored-By: Claude Fable 5 <[email protected]>
- Move table column-width estimation into the background render pass
and store it on MarkdownRenderedTable; the view measured every cell's
AttributedString per body evaluation on the main thread
- Make rendered markdown blocks Equatable (inline runs compare by
reference thanks to the streaming run cache) and wrap block views in
.equatable(), so only the changed tail of a streaming message
re-renders instead of every block
- Gate the thread header's per-second TimelineView on working status;
idle threads render a static status
- Decode local attachment previews off-main through the shared
thumbnail cache; UIImage(data:) ran in body per reconfigure
- Memoize composer trigger parsing (was parsed 4x per keystroke)
- Drop markdown caches on memory warnings
- Stop the QR capture session on viewDidDisappear/backgrounding and
resume on reappear; dismantle was the only stop path
- Retry pending workspace navigation requests when snapshot data lands
so cold-start deep links are not silently dropped
- Scope approval/user-input resolution to details that contain the
request instead of deep-comparing every cached transcript
- Binary-search diff hydration anchors (was O(n^2) on large files)
Co-Authored-By: Claude Fable 5 <[email protected]>