Repository navigation
Conversation
📝 WalkthroughWalkthroughThe change adds nested identity handling for agent statuses and provider sessions. A shared helper ignores differing nested provider-session claims while a fresh parent identity is active, while matching or completed-parent claims remain allowed. Renderer status updates suppress inherited provider sessions and retain the parent identity. Tests cover identity resolution, terminal-status suppression, provider-session filtering, preservation of a live Claude session during nested Codex updates, and two runtime test setup corrections. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/shared/agent-status-identity.test.ts (1)
20-50: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCover stale-parent handoff.
The contract allows a different agent to claim the pane once the parent is stale, but this suite only covers the
donehandoff. Add a case with a smallstaleAfterMsto protect that boundary.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 7be389cb-41d6-4fd3-a1c6-ba97075a91ac
📥 Commits
Reviewing files that changed from the base of the PR and between c3620f0 and 2bb9327e91ca9067fa943fd090e64d217eac0384.
📒 Files selected for processing (4)
src/renderer/src/store/slices/agent-status-provider-session.test.tssrc/renderer/src/store/slices/agent-status.tssrc/shared/agent-status-identity.test.tssrc/shared/agent-status-identity.ts
e11736d to
5568050
Compare
Sync update (
|
Nested workers inherit ORCA_PANE_KEY. While Claude (parent) is still a fresh non-done identity, nested Codex must not install its provider session as the pane's resume provenance or demote the live row into a codex sleeping record — that path cold-restores as Codex and fails trusted session-file verification when leaving the Agents UI. Fixes stablyai#10105
71b4181 to
2f623fd
Compare
|
Closing as superseded by merged #29264 and #29386. The merged host admission rule rejects cross-provider inherited updates before they can replace the parent session or mutate its caches; renderer resume regressions preserve the Claude sleeping record and The final focused suite passed 197 tests, and Show terminal plus paired mobile transcript selection passed three hidden Electron runs each on macOS and Linux. The original report #10105 is now closed with the remaining platform/version limitations documented. |
Summary
Fixes #10105.
Why
When Claude starts a nested Codex worker, both CLIs can inherit the same ORCA_PANE_KEY. The nested hook could then write a Codex resume record or attach the Codex session id to the live Claude row. A later cold restore or Agents return could launch the wrong provider/session file.
Scope and design
Test plan
Screenshots
No visual chrome changes.
Security audit
The guard prevents a nested provider from substituting another account's session file during resume. No new filesystem, network, persistence, or credential behavior is introduced.
Platform review
The identity logic is shared renderer state and applies equally to macOS, Linux, Windows, and SSH/remote panes. It does not depend on a provider-specific shell or path format.
ELI5
Claude can start a Codex helper in the same terminal slot. Orca now remembers that Claude still owns the slot until Claude actually finishes, so returning later does not open the helper's session by mistake.