Repository navigation
fix(remote): a paired-client open leaves originless legacy resume records unresumed - #29389
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 5 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
nwparker
force-pushed
the
nwparker/paired-resume-legacy-records
branch
from
October 16, 2026 04:23
2ea4ac9 to
4846b06
Compare
Merged
8 of 9 tasks
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.
ELI5
#29272 made a paired client's reopen of a slept agent tab resume its conversation. A Codex review flagged one gap. Very old saved records, written before Orca tagged records with where they came from, were also being resumed. Nothing can prove which pane or machine wrote such a record. So they now get a plain shell, and the record is kept.
What Changed
Before: opening a tab from a paired client (or an automatic reconnect) resumed any finished resume record for that pane, including legacy records with no
origin.After: only records that name their origin are resumed:
liveorquit;worktree-sleepwith the agent finished.An originless record opens as a plain shell and stays in place, for the host window's existing legacy cleanup (
isInvalidWorktreeActivationRecordalready treats these as invalid).Mechanism: one condition in
getPaneOwnedResumeRecord(src/main/runtime/session-lifecycle/projection/apply-mobile-session-tab-navigation.ts).Why
Records carry no writer stamp. For an originless record there's no way to prove this host or this pane wrote it, so resuming it could reopen a stale conversation. The safe direction is no resume with the record kept. That's the same outcome as before #29272, so it can't be worse than today.
Linked Issue
Fixes #29303
Visual Proof
N/A. A host-side launch-choice change, covered by a runtime test.
Testing
mobile-session-tabs-part-09.spec.ts: an originlessdonerecord is not resumed on an automatic or user activation, and the record is kept. It fails before the fix and passes after.pnpm test src/main/runtime/orca-runtime.test.ts(1387 passed),pnpm tc:node,pnpm run check:code-quality:changed.Review
Agent skill upstream boundary
Notes
No wire change. Applies equally to SSH, local and folder workspaces, since it only narrows which records are resumed.
Checklist
N/Awith reason for visuals