Reuse the web app's timeline derivation (turn folds, work groups, live
work), its sidebar sections and status words, steer-by-default sending,
the question panel, decline-with-feedback, and visit/read marking.
Full snapshots of long threads exceeded the server's WebSocket message
limit (close 1009), which killed the shared socket and every thread on it.
Subscribe with acceptBoundedSnapshot like the web client, page older turns
over the history endpoint, and reconnect with backoff, resubscribing
watched threads, whenever the socket closes.
- Track selection by thread id and sort active threads by run start, so
reordering no longer resubscribes and reloads the open thread
- Cache blocks per turn item, reuse unchanged segments, memoize views,
and batch streamed updates to one redraw per frame
- Keep left threads subscribed for a minute so switching back is instant
- Fold runs of tool calls and reasoning into one summary line; clip long
user messages; e expands both
- Always-visible multi-line composer with per-thread drafts and
typing/navigation modes