Repository navigation
feat: open a child thread on another computer from its tab, read through the link - #1049
Merged
Merged
Conversation
…ugh the link A child a thread started on a linked computer that this app isn't connected to had a greyed-out family tab and sidebar row: the app had no thread to open. The parent's computer now reads it from the child's computer over the link (`links.readThread`, capability `linkedThreadRead`, backed by `peer.thread.read`), and the app shows it read-only at /linked/$computerId/$linkedThreadId: the asks and answers, with Show all for clipped messages, refreshed while it works, swapping to the real thread once the app connects there. The family tab, live and Wrapped sidebar rows, the parent's "Started N threads" line and the child's reply author all open it. An open child keeps its tab and sidebar row. A removed link, an older parent computer, or a start with no thread yet stay unclickable.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
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.
A child thread started on a linked computer that this app isn't connected to showed a greyed-out tab in the family row and a dead sidebar row. The app had no thread to open, so the user couldn't read the child's final turn from that machine, while the other computer's app could.
The parent's computer now reads the child from the child's computer over the existing link. It uses a new
links.readThreadRPC (capabilitylinkedThreadRead) backed bypeer.thread.read. It reads only for a parent that holds the child, and the child's computer only serves threads its link started. The app shows the child read-only at/linked/$computerId/$linkedThreadId:The family tab, the live and Wrapped sidebar rows, the parent's "Started N threads" line and the child's reply author all open it. An open child keeps its tab and sidebar row, even in a folded group. A removed link, an older parent computer, and a start with no thread yet stay unclickable. One-message reads refuse an older computer's page answer, using the guard shared with
thread_read.Docs:
docs/design/child-threads.md(new section),fleet.md, and the in-app guide topic.Tests: a new server test, family tab logic cases, and a browser test that clicks the remote tab and reads the transcript. Full web, server and contracts unit suites pass, and the touched browser suites pass (203 tests). Astra reviewed the diff. All 7 findings were confirmed and fixed.