Repository navigation
feat(remote): keep thread lists available through a trusted host - #1
Draft
jacobcorbett wants to merge 2 commits into
Draft
jacobcorbett wants to merge 2 commits into
jacobcorbett wants to merge 2 commits into
Conversation
Thread transfer impact
This comment will update automatically after the next completed run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a laptop goes offline, a phone can show an older thread list even though another machine already saw its settle and snooze changes. Clients currently keep independent caches, so an online machine cannot supply that newer state.
This adds an opt-in read-only copy on one chosen linked environment. The source exports its bounded thread list; previously authorised clients can read a newer copy from that host while the source is unreachable. The list says which source is offline and when it last synced. Live source data takes over on reconnect. Setup and notices are included for web, desktop and mobile.
The source still owns commands and execution. Copies exclude conversation bodies, error text, goals and background-task descriptions. They include titles, status, timestamps, project folders, branches and pull-request metadata. Reader grants come from the source; access to the host alone does not open a copy. Sequence ordering is scoped to the source database, writes use a persistent ownership secret, and expired copies are dropped.
Related: upstream issue #24530 and proposal #20279. This PR targets Jacob's fork, not upstream.
Screenshots
Setup comparison, before and after enabling the setting in the same local fixture. Screenshots use neutral fixture names, Laptop and Home server, in place of the host machine name. Both captures use this implementation; an original-build baseline was not captured because implementation was already underway when screenshots were requested.
After-only runtime capture: the source process is stopped and the client shows its saved thread list with the shorter offline notice. The original three-party behaviour check is described below; these refreshed screenshots show the same fixture after the reconnect/un-settle check.
Responsive web at an iPhone-sized viewport with the same offline fixture. This is responsive web evidence, not a native iOS screenshot.
Proof uses synthetic data on two isolated local server instances and a separate browser client. No live personal database was used. Selecting Off removed the host's copy; selecting the host recreated it. The browser cached the old list and left the app. Source commands then settled and snoozed threads at sequences 9 and 10; the host acknowledged sequence 10 before the source process stopped. Reopening the client showed Settled 1, Snoozed 1 and the offline notice. Restarting the source cleared the notice; an un-settle at sequence 11 appeared live. Reloading while the source was offline restored the notice.
Validation and limits
vp run check:changedpassed format, lint, knip, GraphQL checks, typechecks of 41 affected packages, 19 test files and React Compiler checks.git diff --checkpassed.Reviewed with sol-loop: 3 rounds with Claude Sonnet 5.5 on medium. Final verdict: approved. Lifecycle, grant refresh, connection gating, provenance, atomic writes, relinking and transfer frequency findings were fixed. One bounded retry-log nit was declined. The review diff grew from +2,704/−40 to +3,272/−48 lines, chiefly focused regression coverage and lifecycle fixes. A later copy-only edit shortened the shared web/mobile notice to "Showing saved threads. Reconnect to make changes."; it was locally reviewed and visually checked with fresh screenshots. Review usage was not exposed.
Implemented with Claude Sonnet 5.5 (Claude Agent) and GPT-6.1-Sol (Codex), orchestrated in T3 Code.