Skip to content

Read a linked computer's steps, guide files, hover code and tagged search there - #3976

Merged
backnotprop merged 33 commits into
mainfrom
feat/linked-computer-reads
Nov 26, 2026
Merged

backnotprop merged 33 commits into
mainfrom
feat/linked-computer-reads

Conversation

@backnotprop

@backnotprop backnotprop commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

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.

Item Door (machineOnly: a phone still gets the unknown-route 404) Window An older peer
1. Steps GET threads/:id/steps threadSteps reads on the thread's machine, under that machine's Steps switch whatever this computer's (threadStepsRead, used by ThreadSlot.tsx); a far steps line reads the open checklist again (eventFrames.ts: record handler only, never a ring or a thread re-read) off, as before
2. Guided review 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/guide now says that Inbox's code_review switch expand arrows, image previews, package changes card and Viewed ticks go to the message's machine; the review follows that machine's Code review switch (ReviewPane.tsx, ownerSwitch): off there, no verdict, Viewed, Post or hovers (each would be refused there); on there, they show with it off here no arrows, no image previews, no Viewed ticks (today Viewed showed and failed); its switch unknown, so this computer's, as before
3. Linked HTML page in its own tab, file text none needed: already served by the forward from the far view (inbox-machine-page.ts); no window reads the raw attachments/<id> route no change as before
4. Hover code text GET open-in/file/code; a linked machine's request is window-only and held to the thread's own folders and PRs: its repo and pull scopes are ignored. The reachOf boundary for view/raw is unchanged openInFileCode goes to the thread's machine no hover, as before
4b. Hover / diff header Copy path GET open-in/file (the file check), window-only, held to the thread's folders (repo ignored); its POST (launch) is on no door openInFileCheck goes 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 is no control, as before
5. Search with a Tag filter the existing GET search; the merged route asks only machines with the mark both passes; each picked tag sent with every machine's id of it (searchTagIds); the Tag chip offers those machines' tags too not asked, not named as unanswered
6. Copy path over the tailnet GET open-in/file (the file check) answers over the tailnet; its POST (launch) stays local_only the pane header over the tailnet shows a linked machine's file's control (new tab + Copy path, or a plain Copy path button); the tile's right-click menu and full screen's ⋯ have Copy path; a referenced file's control is Copy path alone. A phone's header keeps its one icon n/a (same Inbox)
7. Comment drafts on a linked file left out

Item 7: the comment-draft route is not on the door, and its write answers a conflict at once (draft_conflict with the newer draft), so it cannot wait in the outbox as a set; it needs its own design (and sits next to the reply-drafts work on feat/linked-thread-reply-drafts). Listed as a known gap in inbox-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.ts passes.

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 a set; 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.
  • DOM: 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-starting tests (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).

…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).
@backnotprop backnotprop added the ci:e2e Run the full browser suite (Inbox window e2e) on this PR label Nov 24, 2026
…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
…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
…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

# 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
…ked-computer-reads

# Conflicts:
#	apps/mobile/contract/parity/ledger.json
@backnotprop
backnotprop marked this pull request as ready for review November 26, 2026 09:09
@backnotprop
backnotprop merged commit 883d71c into main Nov 26, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the full browser suite (Inbox window e2e) on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant