Repository navigation
Inbox: combine threads that live on two linked computers - #3872
Merged
Merged
Conversation
The Combine dialog lists the running agents of both computers (each asked about its own picks, each line ending with its computer). The chosen agent's computer runs the Combine and keeps the new thread: it reads the other computer's picked threads there with the agents' far read, and once the new thread arrives archives them there through the outbox, each under a key made from the Combine's id; Undo brings them back the same way, queued behind the archive. Nothing is written on either computer before every far thread was read. New linked mark combine-across, so an older linked Inbox is said to need an update instead of being asked.
…archive skipped, busy on both computers
…th computers, says the person's lines, and Undo waits for the other computer
…unning agents too; the world test reads the busy refusal by its code
… capped at 500 MB, picked up after a restart and attached once; Undo of a landed archive is not held to its guard; the Undo toast says the other computer's true state; a thread deleted there is not 'away'; this Inbox's own failing writes step aside for the person's
…re less-than, which Semgrep's TypeScript parser read as type arguments
…nction named using reads as a using declaration to Semgrep's TypeScript parser
…ite it, every pick's files go on the new thread, and one quiet line names what stayed open or was not copied
…by its link, and gives its seventh test the time it takes
…puter, nothing lands after its day, copies that outlive their threads, and the quiet line follows the other computer - Undo queues behind the archive on that computer's queue (outbox follows), with no time bound; an archive not landed within its day is never sent again (outbox send_by), also one that left once. - An archive there is skipped after the person's own Unarchive there (seen_cursor); one written in since its archive is one write (again). - This computer's files and pictures are copied to the new thread's own uploads folder; a copy is checked against the sha256 the other computer named; files never reached in their time are named as not copied. - The quiet line drops a thread archived there since (that computer's list as held), and uses the neutral note mark. - A hold whose Combine was never written lets go after 2 minutes; a written one is confirmed. - A Combine's wake note reads Combine sent to, not Tidy sent to. - The GuideCard ternary is back as on main.
backnotprop
marked this pull request as ready for review
November 22, 2026 22:58
1 task
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.
Draft: Combine threads that live on this computer and one linked computer (approval "inbox-combine-across-computers"). The owner sees the real dialog before any merge.
How it works
POST combine/hold), so neither computer can combine them twice at once. The hold lasts 2 minutes until the Combine is written here (confirmed), then at most 26 h, so a start that stopped halfway leaves nothing busy for long. The wake goes into one of its own picks.agent-file, with the same caps and refusals, and checked against the SHA-256 that computer named), so all open from the new thread, also while that computer is off. A file that can't be copied is left out and the Combine goes on; one never reached because that computer stayed away for the day is named too.combine_lefton the message, written as the Inbox learns it); a thread archived there since, as that computer's list says, drops out of it. Its mark is the neutral note mark.seen_through_message,seen_questions). If the thread moved on, has an open question the read never saw, or was unarchived there by the person after the read (seen_cursor), it is skipped there. An archive not landed within a day is never sent again, also one that left once (outboxsend_by), and taken back quietly.follows), with no time bound: it goes once the archive landed or may have, and is dropped only with an archive that surely did not land.waiting_ontells the window to wait before it says "Combine undone.".auto), so they are never listed as the person's waiting writes and never raise a notice.Tests
packages/server/inbox-combine-far.test.ts,inbox-combine-across.test.ts, the two-Inboxinbox-combine-across-world.test.ts(CI only).packages/server/inbox-combine-across-files.test.ts,packages/core/inbox-combine-left.test.ts.pickWork.test.tsx,combines.test.tsx,tidyNote.test.tsx.tests/e2e/inbox-combine-machines.spec.ts, with screenshots ininbox-window-proof-<shard>undercombine-across-computers/(07-dialog-picks-on-one-computer.png,08-dialog-picks-on-both-computers.png,09-combined-thread-quiet-line.pngfor the three decisions).