Commit Graph
30 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 be92cf8912 feat(swift-ios): bring Ghostty to the terminal (#5602) 2026-08-09 20:55:03 -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 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 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 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 b01cc94775 fix(swift-ios): show active work and image previews 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 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 c89d2ddfe9 feat(swift-ios): finish secure T3 Connect runtime 2026-08-09 20:52:52 -07:00
Theo Browne 782f0d93a7 fix(swift-ios): make mobile delivery resilient 2026-08-09 20:52:51 -07:00
Theo Browne fd67a621da fix(swift-ios): honor environment task preferences 2026-08-09 20:52:51 -07:00
Theo Browne fe48a626d1 fix(ios): harden native task creation 2026-08-09 20:52:51 -07:00
Theo Browne 6e7216a53d feat(ios): complete native task composition 2026-08-09 20:52:51 -07:00
Theo Browne 54e19d96d1 feat(ios): add project browse and clone flows 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 946e453fb1 perf(ios): keep the native home list responsive 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 7610a07185 feat(ios): merge threads across environments 2026-08-09 20:52:50 -07:00
Theo Browne 7cd72c515a feat(ios): add rich home thread metadata 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