Skip to content

fix(remote): a paired-client open leaves originless legacy resume records unresumed - #29389

Merged
nwparker merged 1 commit into
mainfrom
nwparker/paired-resume-legacy-records
Oct 16, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/paired-resume-legacy-records

Conversation

@nwparker

@nwparker nwparker commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​13 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​13
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4

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:

  • live or quit;
  • worktree-sleep with the agent finished.

An originless record opens as a plain shell and stays in place, for the host window's existing legacy cleanup (isInvalidWorktreeActivationRecord already 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

  • Automated tests added/updated
  • New case in mobile-session-tabs-part-09.spec.ts: an originless done record 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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No wire change. Applies equally to SSH, local and folder workspaces, since it only narrows which records are resumed.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • N/A with reason for visuals
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • Typecheck, changed-code lint and targeted tests pass; CI covers the rest

@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 61545b37-c75e-4db4-970d-fa61d2682838
📥 Commits

Reviewing files that changed from the base of the PR and between 9c863a6 and 4846b06.

📒 Files selected for processing: 2
  • src/main/runtime/orca-runtime-tests/mobile-session-tabs-part-09.spec.ts
  • src/main/runtime/session-lifecycle/projection/apply-mobile-session-tab-navigation.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker force-pushed the nwparker/paired-resume-legacy-records branch from 2ea4ac9 to 4846b06 Compare October 16, 2026 04:23
@nwparker
nwparker merged commit b16b01d into main Oct 16, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Paired-client pane resume treats originless legacy done records as pane-owned

1 participant