Commit Graph
28 Commits
Author SHA1 Message Date
Theo Browne df65ee857a fix(swift-ios): harden native client architecture 2026-08-09 20:55:48 -07:00
Theo Browne 0f5a1c1049 style(swift-ios): preserve native formatting 2026-08-09 20:55:47 -07:00
Theo Browne cf79d65d1a feat(swift-ios): add light mode 2026-08-09 20:55:47 -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 017b2b4605 feat(swift-ios): paginate long thread history 2026-08-09 20:55:02 -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 b92c3f7e21 fix(swift-ios): stabilize new task environment defaults 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 cb12d183ce feat(swift-ios): add server-backed thread pinning 2026-08-09 20:52:53 -07:00
Theo Browne b01cc94775 fix(swift-ios): show active work and image previews 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 764e160cc9 fix(swift-ios): make composer state durable 2026-08-09 20:52:52 -07:00
Theo Browne 6b416ac5c3 fix(swift-ios): preserve dependent queued messages 2026-08-09 20:52:52 -07:00
Theo Browne 1a33ea1aa6 feat(swift-ios): add native platform integrations 2026-08-09 20:52:51 -07:00
Theo Browne 782f0d93a7 fix(swift-ios): make mobile delivery resilient 2026-08-09 20:52:51 -07:00
Theo Browne 3ee21d04fe feat(ios): add new task workspace controls 2026-08-09 20:52:51 -07:00
Theo Browne d61d049bdb feat(ios): simplify mobile prompt controls 2026-08-09 20:52:51 -07:00
Theo Browne 9b72bc4169 perf(ios): stream incremental thread updates 2026-08-09 20:52:50 -07:00
Theo Browne 67a1b6597f feat(ios): raise the native app type scale 2026-08-09 20:52:50 -07:00
Theo Browne 275ce96ba6 fix(ios): keep settings open while removing servers 2026-08-09 20:52:50 -07:00
Theo Browne ddebf960b8 fix(ios): scope native multi-device routing 2026-08-09 20:52:50 -07:00
Theo Browne fe9ade88d2 feat(ios): support multi-select agent input 2026-08-09 20:52:50 -07:00
Theo Browne 46bbbb1d48 feat(ios): rebuild the home sidebar v2 2026-08-09 20:52:49 -07:00
Theo Browne 27a28907d0 fix(ios): polish native daily flows 2026-08-09 20:52:49 -07:00
Theo Browne fb46f74eba feat(ios): ship message-first daily UX 2026-08-09 20:52:49 -07:00
Theo Browne 411ba96443 feat(ios): add native T3 Code app 2026-08-09 20:52:49 -07:00