Skip to content

fix: a moved thread names the threads it started that are already on its new computer - #990

Merged
badcuban merged 3 commits into
mainfrom
fix/moved-here-names-children
Nov 18, 2026
Merged

badcuban merged 3 commits into
mainfrom
fix/moved-here-names-children

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

A parent thread can start a child on another computer and later move to that same computer. When it arrived, its "Moved here" line said nothing about the child, or said the child "stayed there", which was wrong.

The computer it moves to now finds those children in its own records and says so: "Its thread 'Fix tests' is already on this computer. It stays separate, so this thread can't reach it." Threads that were archived, deleted, or have moved away again are left out. The sending computer stops listing them as "stayed there", and the receiver drops that old entry if an older sender still sends it.

…its new computer

A parent that moves to the computer where a thread it started already is
(a child that moved there alone, or one its agent started there over the
link) got no word about that thread on arrival. With a family, the sender's
list of remote children even said it "stayed there".

The receiving computer now reads its own records (threads started over the
same link by the thread the move came from) and adds a line to the Moved
here boundary: "Its thread 'X' is already on this computer. It stays
separate, so this thread can't reach it." The sender leaves children on
the target computer out of remoteStayed. Nothing is re-linked: the child
stays fenced and its parent stays the copy on the old computer.
…n older sender's duplicate

A thread started here that has since moved away is no longer named as
already here. When an older computer still lists a child here as staying
where it is, that entry is dropped in favor of the line from this
computer's own records. The lookup reads at most eight rows at a time.
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 18, 2026 5:08am UTC

Request Review

…ves first

Its two children are listed in the order the app received them, which the
shell and detail streams race to set, so the exact sibling order flaked in
CI. It now checks the parent leads with both children right under it.
@badcuban
badcuban added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 70c7b33 Nov 18, 2026
24 checks passed
@badcuban
badcuban deleted the fix/moved-here-names-children branch November 18, 2026 05:20

This branch was previously deployed

1 inactive deployment
Preview — 03a6ee30 Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant