Repository navigation
Read a linked computer's steps, guide files, hover code and tagged search there - #3976
Merged
Merged
Conversation
…arch there A linked machine's door now serves its window the reads it makes of its own threads (mark linked-reads): a thread's steps, a guided review's whole files, image sides, package changes and Viewed ticks (held in the outbox as a set), a code span's hover text held to the thread's own folders, and search with a Tag filter by every machine's id of the tag. An older machine is asked nothing new. Over the tailnet the window gets Copy path, and the referenced file check answers there (its launch stays local).
…decide; Copy path for a far file; tailnet test for the new control
…reads # Conflicts: # apps/mobile/contract/generated/swift/Wire.swift # apps/mobile/contract/parity/ledger.json # packages/core/inbox-types.ts
# Conflicts: # apps/mobile/contract/generated/swift/Wire.swift # apps/mobile/contract/parity/ledger.json # docs/agent-guides/inbox-machines.md # packages/core/inbox-types.ts # packages/inbox/api.ts # packages/inbox/thread/ThreadSlot.tsx
…ow only, image only, the cap; one typed linked-reads mark
…p, as JSON under this Inbox's headers
…n; reads follow marks that arrive late; away answers at once; window-only guide reads; no secret through the file check
# Conflicts: # apps/mobile/contract/parity/ledger.json # packages/inbox/parts/MessageBody/MessageBody.tsx
…ld Viewed tick says it waits in the thread's held words
…ked-computer-reads
…checklist, review, held Viewed, hover, Tag search; proof shots
…nner; each direction keeps the other's own ticks
…onsole error names its resource A link opened cold reads the thread on Studio before the first list names Laptop (a 404 by design, then the read on Laptop), and Ask reads it there too: two 'Failed to load resource' 404s in test 1. Open from the list as a person does; the cold link's fallback is proved in inbox-machines.spec.ts 2d.
The review's Ask on selected lines (useCanAsk) read GET /api/inbox/threads/<id>/ask on this Inbox for a linked machine's thread too: that thread is not here, so a 404 in the console on every far review. Ask is this Inbox's own, as the Ask window already says (useInboxAsk): a linked machine's thread is not asked.
…ked-computer-reads # Conflicts: # apps/mobile/contract/parity/ledger.json
start() returns once Laptop's own health answers; Studio's link sees it back a moment later, and a read in between is Studio's 503 'cannot be reached now', the same answer as while it was stopped.
…ked-computer-reads # Conflicts: # apps/mobile/contract/parity/ledger.json
…s words shoot() moved the pointer to the corner first, which closes a code span's hover window, so its Copy path was gone when the spec pressed it.
…ked-computer-reads
…ow with the same id
…ked-computer-reads # Conflicts: # packages/inbox/useThreadTagsHost.ts
… the thread Read by the earlier tests, Laptop's threads sit in the closed Quiet band, which draws no row, so a phone opened later never saw one to wait for.
…ked-computer-reads # Conflicts: # apps/mobile/contract/parity/ledger.json
…ads or is back; a Viewed tick is never kept unconfirmed OpenInFileSplit asks a linked machine's file again when that machine's facts change (its marks came, it is back online), and keeps no answer given before it was asked there. A review's Viewed tick goes back when its save fails, and a held one when its outbox entry settles as anything but delivered (useViewedTicks). The outbox table's comment says what a viewed write is now: one file's state.
…ked-computer-reads # Conflicts: # apps/mobile/contract/parity/ledger.json
… window's unconfirmed ticks on top The kept list is taken whenever it changes (a reload mid-hold, a second window), a held tick seen waiting is taken once delivered, an older save's answer never undoes a newer tick, and an old review's answers never reach the next.
…ked-computer-reads # Conflicts: # apps/mobile/contract/generated/swift/Wire.swift # apps/mobile/contract/parity/ledger.json
…ys under its line cap after the merge
… way to the kept list
…ked-computer-reads # Conflicts: # apps/mobile/contract/parity/ledger.json
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.
Things that work on this computer's threads but were missing on a thread that lives on a linked computer (or from a window over the tailnet), where only a read was missing. The owner's rule: whatever works on one computer works across them.
A linked computer's window already reads through the device door; these reads were not on it (the door's allowlist was written for phones), or the window did not send them to the thread's machine.
One new mark,
linked-reads(INBOX_LINKED_MARKS). The window asks a linked machine for these only once its list says the mark (packages/inbox/linkedReads.ts), so an older Plannotator there is asked nothing new and shows what it showed before: no error, no new words.machineOnly: a phone still gets the unknown-route 404)GET threads/:id/stepsthreadStepsreads on the thread's machine, under that machine's Steps switch whatever this computer's (threadStepsRead, used byThreadSlot.tsx); a farstepsline reads the open checklist again (eventFrames.ts: record handler only, never a ring or a thread re-read)GET messages/:id/guide/(file|review-image|review-markdown-image|package-changes),POST messages/:id/guide/viewed(rule 8:set, held in the outbox while the peer is away);GET messages/:id/guidenow says that Inbox'scode_reviewswitchReviewPane.tsx,ownerSwitch): off there, no verdict, Viewed, Post or hovers (each would be refused there); on there, they show with it off hereview(inbox-machine-page.ts); no window reads the rawattachments/<id>routeGET open-in/file/code; a linked machine's request is window-only and held to the thread's own folders and PRs: itsrepoandpullscopes are ignored. ThereachOfboundary forview/rawis unchangedopenInFileCodegoes to the thread's machineGET open-in/file(the file check), window-only, held to the thread's folders (repoignored); itsPOST(launch) is on no dooropenInFileCheckgoes to the thread's machine; the control is Copy path alone, with the path on that machine. Open is left out for that file: an app on this computer cannot open a file that is not on this disk, and launching there would open it on that machine's screen, not where the person isGET search; the merged route asks only machines with the marksearchTagIds); the Tag chip offers those machines' tags tooGET open-in/file(the file check) answers over the tailnet; itsPOST(launch) stayslocal_onlyItem 7: the comment-draft route is not on the door, and its write answers a conflict at once (
draft_conflictwith the newer draft), so it cannot wait in the outbox as aset; it needs its own design (and sits next to the reply-drafts work onfeat/linked-thread-reply-drafts). Listed as a known gap ininbox-machines.md.What a person sees differently: on a newer linked machine's threads, the checklist, the review's expand arrows, image previews, package changes, Viewed ticks and code hovers appear; search's Tag chip lists that machine's tags and finds its threads. Over the tailnet, Copy path in the header, the tile's menu and full screen's ⋯. On an older machine's review, Viewed ticks no longer show (they could only fail). A linked machine's review and checklist follow that machine's Code review and Steps switches, not this computer's. A linked thread's code hover and a far review's diff headers have Copy path (that machine's path).
Mobile contract regenerated with
bun scripts/mobile/all.ts(door routes);bun scripts/mobile/check.tspasses.Tests
packages/server/inbox-linked-reads.test.ts(in process, no Inbox): each read reaches a linked machine and not a phone; launch stays off the door; Viewed is aset; a linked machine's hover and file check read its thread's files, never another clone or a named PR, and a bare call is refused; the file check answers over the tailnet while launch stays local; the guide's answer says the switch that takes or refuses Viewed; a Tag search asks only marked machines, with every id, and merges.packages/inbox/linkedReads.test.ts: steps, hover text, the file check and guide images go through the forward with the mark and ask nothing without it; a linked thread's steps are asked with this computer's switch off, and its answer decides; marks unknown before a list read; a far steps line reaches the record handler only; Tag ids expanded; the Tag chip's tags.openInRemote.test.tsx(tailnet: new tab and Copy path, a phone's icon, Copy path of this computer's file, full screen's ⋯; a linked thread's referenced file: asked there, Copy path alone with its path there),reviewLinkedSwitch.test.tsx(a linked review's Viewed ticks follow that machine's Code review switch both ways; this computer's follows its own),openInFile.test.tsx(a referenced file over the tailnet: Copy path alone),threadTagsStep2.test.tsx(each machine's id sent).inbox-devices.test.ts,inbox-open-in.test.ts,inbox-search-machines.test.ts,openIn.test.tsx: its tailnet test now asserts the new tab + Copy path split, Copy path alone for Markdown, no launch, no tile ⋯) and e2e run in CI only.Not verified by hand: two real linked Inboxes in a browser (CI's e2e covers the linked-machine specs; none exercises these reads yet).