Commit Graph
2534 Commits
Author SHA1 Message Date
Theo Browne 3180cbcd04 fix(swift-ios): keep code views readable 2026-08-09 20:55:03 -07:00
Theo Browne 58d043737d fix(swift-ios): unify T3 Connect provider buttons 2026-08-09 20:55:03 -07:00
Theo Browne a038331398 fix(swift-ios): polish T3 Connect sign in 2026-08-09 20:55:03 -07:00
Theo Browne 66f7239232 chore(swift-ios): bump TestFlight build to 9 2026-08-09 20:55:03 -07:00
Theo Browne be92cf8912 feat(swift-ios): bring Ghostty to the terminal (#5602) 2026-08-09 20:55:03 -07:00
Theo Browne 45fbdde909 feat(swift-ios): use Clerk authentication components 2026-08-09 20:55:03 -07:00
Theo Browne 55fe074aec chore(swift-ios): bump TestFlight build to 8 2026-08-09 20:55:02 -07:00
Theo Browne ac796c5623 fix(swift-ios): reject pre-cancelled rpc requests 2026-08-09 20:55:02 -07:00
Theo Browne eb37434cd2 fix(swift-ios): harden cloud and platform lifecycle 2026-08-09 20:55:02 -07:00
Theo Browne 2b8a3ca847 fix(swift-ios): address native client reliability feedback 2026-08-09 20:55:02 -07:00
Theo Browne 13bb317da2 chore(swift-ios): bump TestFlight build to 7 2026-08-09 20:55:02 -07:00
Theo Browne f502a5b495 feat(swift-ios): add T3 Connect to onboarding 2026-08-09 20:55:02 -07:00
Theo Browne dd039c3986 chore(swift-ios): bump TestFlight build to 6 2026-08-09 20:55:02 -07:00
Theo Browne 017b2b4605 feat(swift-ios): paginate long thread history 2026-08-09 20:55:02 -07:00
Theo Browne 157ded3786 chore(swift-ios): bump TestFlight build to 5 2026-08-09 20:53:12 -07:00
Theo Browne a927e8d1d7 chore(swift-ios): bump TestFlight build to 4 2026-08-09 20:53:12 -07:00
Theo Browne 81c4330391 fix(swift-ios): restore active thread context 2026-08-09 20:53:12 -07:00
Theo Browne 02916909f4 docs: distinguish SwiftUI mobile client 2026-08-09 20:53:12 -07:00
Theo Browne de73b9082a feat(swift-ios): distinguish development builds 2026-08-09 20:53:11 -07:00
Theo Browne 40e371b8cd fix(swift-ios): release idle websocket clients 2026-08-09 20:53:11 -07:00
Theo BrowneandClaude Fable 5 45e56bc844 fix(swift-ios): reject recycled-cell documents in streaming fallback
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]>
2026-08-09 20:53:11 -07:00
Theo BrowneandClaude Fable 5 07e4e3108a fix(swift-ios): guard streaming renderer against stale drain unwinds
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]>
2026-08-09 20:53:11 -07:00
Theo BrowneandClaude Fable 5 041df3c44d fix(swift-ios): address review findings on streaming and caps
- 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]>
2026-08-09 20:53:11 -07:00
Theo BrowneandClaude Fable 5 106d7b866d perf(swift-ios): lighten streaming UI and close lifecycle gaps
- 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]>
2026-08-09 20:53:11 -07:00
Theo BrowneandClaude Fable 5 99f78a7d1f perf(swift-ios): cut hot-path waste in networking, state, and caches
- Cache EnvironmentStore's decoded document; publishes read it several
  times per second and previously hit disk + JSON decode every time
- Memoize parsed ISO8601 dates in NativeFeatureClient; every publish
  re-parsed ~10 timestamps per thread through two formatters
- Cache the mapped provider catalog per environment, invalidated on
  server config writes, instead of rebuilding hundreds of structs per
  publish
- Sort activity logs by raw ISO string instead of parsing dates inside
  the comparator (O(n log n) formatter calls per detail rebuild)
- Skip attachment hydration entirely for text-only threads
- Dedupe emitConnection so per-event yields only publish transitions
- Early-out acknowledgeDeliveredMessages when the outbox is empty
- Cap terminal buffers at 256KB; unbounded append could OOM on verbose
  commands and re-layout megabyte strings per chunk
- Key the markdown document cache by content fingerprint instead of the
  whole source string, stop inserting streaming intermediates (which
  churned completed messages out), and promote the final streamed render
  on completion instead of reparsing on the main thread
- Throttle streaming markdown renders (150ms leading-edge) instead of a
  200ms trailing debounce that never fired at an 80ms publish cadence,
  which left streaming messages as plain text for whole turns
- Share JSONEncoder/Decoder.t3 instances (were rebuilt per call) and
  skip sortedKeys on throwaway JSONValue bridging encodes
- Weak-capture the RPC connection loop and keepalive so released
  clients can actually deinit; snapshot dictionary keys before
  reentrant iteration in connected(); scope subscription Interrupts to
  the connection that assigned the request ID; add reconnect jitter
- Cache DPoP JWK + thumbprint (SHA-256 per managed request before) and
  the proof encoder; reuse ISO8601 formatter in command builders
- Replace crash-prone Dictionary(uniqueKeysWithValues:) on
  server-supplied IDs with first-wins reduces (model picker, agent
  awareness); retain per-thread states instead of full FeatureThread
  copies for transition signals; idle the home list timer to 60s when
  nothing is working

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-09 20:53:11 -07:00
Theo Browne 4166c0b273 fix(swift-ios): preserve SwiftUI home label 2026-08-09 20:52:53 -07:00
Theo Browne 7e0c926c06 fix(swift-ios): restore TestFlight sign-in 2026-08-09 20:52:53 -07:00
Theo Browne 11537cfb3d fix(swift-ios): isolate development installs 2026-08-09 20:52:53 -07:00
Theo Browne b92c3f7e21 fix(swift-ios): stabilize new task environment defaults 2026-08-09 20:52:53 -07:00
Theo Browne f83622d1e0 fix(swift-ios): keep thread pin controls available 2026-08-09 20:52:53 -07:00
Theo Browne edcb10859b feat(swift-ios): wrap plaintext code blocks 2026-08-09 20:52:53 -07:00
Theo Browne cc769910b8 fix(swift-ios): preserve pin and legacy picker state 2026-08-09 20:52:53 -07:00
Theo Browne ee639eb459 feat(swift-ios): hydrate full review diffs 2026-08-09 20:52:53 -07:00
Theo Browne d2ac8dd511 fix(swift-ios): tolerate evolving provider catalogs 2026-08-09 20:52:53 -07:00
Theo Browne cb12d183ce feat(swift-ios): add server-backed thread pinning 2026-08-09 20:52:53 -07:00
Theo Browne a4a0871a0b fix(swift-ios): settle threads from swipe actions 2026-08-09 20:52:52 -07:00
Theo Browne b01cc94775 fix(swift-ios): show active work and image previews 2026-08-09 20:52:52 -07:00
Theo Browne 14d1a9ed6b fix(swift-ios): size markdown table rows to content 2026-08-09 20:52:52 -07:00
Theo Browne 0689c2850d fix(swift-ios): keep markdown tables scrollable 2026-08-09 20:52:52 -07:00
Theo Browne 37365b4346 feat(swift-ios): render markdown tables 2026-08-09 20:52:52 -07:00
Theo Browne c5f28978e2 fix(swift-ios): open the photo library picker 2026-08-09 20:52:52 -07:00
Theo Browne b4e25ed5e0 fix(swift-ios): keep aggregate refresh alive 2026-08-09 20:52:52 -07:00
Theo Browne f6004211f2 fix(swift-ios): preserve durable outbox state 2026-08-09 20:52:52 -07:00
Theo Browne 3ddee9cbdd fix(swift-ios): tolerate locked install targets 2026-08-09 20:52:52 -07:00
Theo Browne 3239bbf7c3 fix(swift-ios): clear stale platform state 2026-08-09 20:52:52 -07:00
Theo Browne 909cfec0ad fix(swift-ios): close connection lifecycle races 2026-08-09 20:52:52 -07:00
Theo Browne 150a059888 fix(swift-ios): harden platform integrations 2026-08-09 20:52:52 -07:00
Theo Browne 764e160cc9 fix(swift-ios): make composer state durable 2026-08-09 20:52:52 -07:00
Theo Browne 4225dea2a4 fix(swift-ios): harden transport and persistence 2026-08-09 20:52:52 -07:00
Theo Browne c3e4c98d3d docs(swift-ios): format native build guide 2026-08-09 20:52:52 -07:00