Repository navigation
fix: thread moves across a link keep their parent, wake, and refuse honestly - #993
Merged
Merged
Conversation
…onestly Fixes six review findings left in #985: - A child that comes back before this computer heard its move landed now lands under its parent: the sender names the thread it moved over from (linkLineage.home.fromThreadId), and when that thread is still the parent's child moving alone to that computer, the import adopts it and completes that move in the same decision (adopt.completesMoveOf). A late answer for a thread already back never records it as a remote child. - A move waiting on another thread in its folder looks again on any event of the threads it waits on, so an interrupted command run, or a workflow or voice chat ending, wakes it. - A parent's message to a child whose own move is stopping it is refused, as for a frozen child, instead of deadlocking the move. - A lone child's move to a computer that can't keep it its parent's ends with that reason (checkMoveTarget reads aloneRefusal) instead of retrying forever when the target came back on an older version. - The move dialog hides the agent picker in "Move its whole family" mode and says each thread uses the agent that computer suggests. - A moved thread records whether its link pinned the computer it came from (movedFrom.environmentPinned, taken from the link); while fenced, one from an unpinned link moves nowhere.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
…ait fixes - An arriving thread reads the thread it moved over from before its parent, and the decider takes `completesMoveOf` when the parent already holds it, so an answer that lands mid-arrival never strands the return or leaves the parent pointing at the read-only copy there. - Only a thread that came back over a link that proved its computer stops a late answer from recording the parent's child there. - The move queue notes the last event per thread: a look that read a waited-on thread before its event arrived looks again (a restart with the shared folder wait already on record emits nothing else). - A move worker stops waiting on an unreachable computer once the move landed another way, and startup removes packed copies of moves already recorded as landed.
- A thread coming home completes its child's move only when it is the copy that move made there: its id must be the one the transfer gives it there, from this computer's device on that computer (linkMoveCopyThreadId). Both the arrival and the decider check it, so a linked computer can't name the real child and send back another thread. - A parent on another computer can't queue a message for a child its own move is already stopping (thread.remote-request.queue), and is told why. - A returned thread deleted since still counts as back, so a late answer never records the read-only copy there as the parent's child. Any return counts again, proven link or not: the pinned-only check brought back the original bug for honest returns over older links.
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 blind review of #985 found six bugs in moving threads across a link, all still in main:
Fixes:
linkLineage.home.fromThreadId). When that thread is still the parent's child moving alone there, the import adopts it and completes that move in the same decision (adopt.completesMoveOf). A late answer for a thread already back never records it as a remote child.checkMoveTargetreadsaloneRefusal, so the move ends with "Update Threadlines on X".movedFrom.environmentPinned). While fenced, one from an unpinned link moves nowhere until someone sends it a message.Heads up: a thread that moved before this change and is still fenced has no pinned mark, so it can't move back until someone sends it a message.
Checked: fmt, lint, typecheck, the full server suite, the contracts and guide tests, and the move dialog's browser tests. Not yet: the full web browser suite, a run between two real linked computers, and an independent review.