Repository navigation
fix(agent-status): preserve restored child provenance - #15082
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (14)
Included review availability: Your plan includes up to 10 reviews per rolling hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change persists Claude child-only lead boundaries across restarts and restores lead-turn state from those boundaries. Claude teammate names now pass through local and remote hook relay envelopes. Matching 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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 |
Exact-head Electron visual proof (
|
* fix(agent-status): preserve restored child provenance * fix(agent-status): preserve restored completion context * fix(agent-status): retain child boundary across OSC
* fix(agent-status): preserve restored child provenance * fix(agent-status): preserve restored completion context * fix(agent-status): retain child boundary across OSC


ELI5
After Orca restarts, it can restore Claude child-agent state before a live hook confirms that the child still exists. This follow-up keeps that restored provenance intact across local, SSH, relay, and mobile projection paths so stale restored state cannot trigger automation or hide a later live confirmation.
What Changed
Why
PR #14375 fixed the primary STA-4144 restart regression. Review of the remaining restore lifecycle found narrow provenance gaps: restored rows could be treated as live for side effects, and an unchanged payload could suppress publication when it transitioned from restored-unconfirmed to live-confirmed. This closes those gaps without adding polling, timers, subprocesses, or a new required wire field.
Linked Issue
Visual Proof
Exact-head Electron/CDP proof is attached in this PR comment. The before/after frames show restored-unconfirmed child state rendering idle without a phantom spinner, followed by the live Done state. Evidence is attached, not committed.
Testing
Final SHA: 1,336 focused tests passed across 15 suites; 1 skipped.
Full node, CLI, and web typecheck passed.
Full lint, reliability, localization, formatting, diff, and max-lines gates passed.
Relay bundles passed for Linux x64/arm64, macOS x64/arm64, Windows x64/arm64, and WSL.
Exact-head Electron/CDP proof passed at 5b76f0a in an isolated profile; screenshots are attached to the PR.
Same-model review loop returned clean in round 4 after three meaningful lifecycle fixes.
CI passed all 44 checks, including Node 24/26 shards and Linux/Windows packaging.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Same-model senior review loop completed clean in round 4. Rounds 1-3 found and fixed only proven P1 lifecycle issues: restored side effects/memoization, restored completion context, and OSC preservation across repeated restart; round 4 found no remaining P0/P1/P2 issue.
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
The relay addition is optional and additive for mixed-version compatibility. The diff adds no dependencies, polling, timers, subprocess churn, unbounded structures, or platform-specific paths/commands.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)Author