Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
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: 📥 CommitsReviewing files that changed from the base of the PR and between 7fad71e and d8aecdb1e9c2f5fcca1078d2902683e9dad44b10. 📒 Files selected for processing (8)
🚧 Files skipped from review as they are similar to previous changes (7)
Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review. 📝 WalkthroughWalkthrough
🚥 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.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/main/runtime/rpc/methods/orchestration-workers-recovery.test.ts (1)
76-95: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winCover lookup failure and exactness guards.
The production code maps a rejected status probe to
nulland skips the probe when the observation is not exact. This test covers only successfulpermissionreporting. Add cases for both paths. Assert that a rejected probe still returnsagentStatus: null, and assert that a non-exact observation does not callruntime.getTerminalAgentStatus.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 86fafa81-68ea-4b78-93a0-e0b63b49a28a
📥 Commits
Reviewing files that changed from the base of the PR and between 6da7b8e and 3ada33f1acf80e0a2c8cc022cf073ce7c655c9fb.
📒 Files selected for processing (6)
skill-guides/orchestration.mdsrc/cli/bundled-skill-guides.tssrc/cli/handlers/orchestration.tssrc/cli/specs/orchestration-worker-specs.tssrc/main/runtime/rpc/methods/orchestration-worker-control.tssrc/main/runtime/rpc/methods/orchestration-workers-recovery.test.ts
Campaign review (batch 31–40)Confirmed finding: federated Local path + optional field remain good. Follow-up before merge:
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/main/runtime/rpc/methods/orchestration-workers-recovery.test.ts (1)
123-179: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd direct
federationShowprobe coverage.This test mocks
callOrchestrationWorkerServer, so it verifies home-side forwarding only. It does not executeorchestration.federationShowor verify its exact-process guard, unattached behavior, terminal handle, and rejected-probe fallback. Add handler-level tests, or confirm that this coverage exists elsewhere. This coverage is required by the PR objective.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: e0e5287d-aaaa-4c70-a85a-eda4764f7782
📥 Commits
Reviewing files that changed from the base of the PR and between 3ada33f1acf80e0a2c8cc022cf073ce7c655c9fb and c3699c150b7804d3d924b29de7ac74468c675f41.
📒 Files selected for processing (4)
src/main/runtime/rpc/methods/orchestration-federation-control.tssrc/main/runtime/rpc/methods/orchestration-worker-control.tssrc/main/runtime/rpc/methods/orchestration-worker-observation.tssrc/main/runtime/rpc/methods/orchestration-workers-recovery.test.ts
c3699c1 to
fe7d9de
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
fe7d9de to
381224d
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
Coverage note from the field, not a review objection — this PR is solving a real problem and I would like it to land.
That silence is not hypothetical. Two prompts I hit on The second one is worth a second look: that worktree had just been created by Neither produces a hook event, so on this PR's path both lanes would keep reporting I am not suggesting this PR should cover them. Reading the hook status is the right first cut — it is exact where it applies, and inferring a permission prompt from raw PTY output is a much harder problem that would sink this change. The ask is smaller: if the field's contract says what it is derived from, a coordinator knows that More detail and measurements in #14854, including a controlled comparison showing that cursor advancement proves life while stagnation proves nothing. Related: #13209 (this PR's issue) and #14896, which I opened before finding #13209 and am closing as the duplicate. Happy to test this against a |
|
Thanks — confirmed. I’ll clarify that contract in the orchestration guide while refreshing this PR against current |
381224d to
d8aecdb
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Attach terminal agentStatus (working|permission|idle) for the exact live worker process so coordinators can detect harness permission stalls without tailing each pane. Closes stablyai#13209
Probe getTerminalAgentStatus on federationShow for the exact remote process and forward the optional field through home workerShow so multi-server fleets surface permission waits (stablyai#13209/stablyai#13215).
Document the hook-only visibility boundary and align this PR's recovery tests with the upstream live liveness verdict introduced while rebasing.
d8aecdb to
86d234b
Compare
|
Rebased and conflict-resolved at |
|
Closing as superseded by maintainer-led #15261, merged as #15261 explicitly closes #13209 and ships the broader Verified against current Fallback: if the merged replacement is reverted or a #13209 coverage regression is confirmed within 14 days, reopen this PR or recut only the missing delta against current |
ELI5
worker-showcan now surface a worker's hook-reported agent status, including a pending permission prompt, without tailing its terminal. The signal is intentionally scoped:permissionis authoritative when present, but absence does not prove a non-hook agent is unblocked.What Changed
agentStatusto localorchestration.workerShowresults only when the Dispatch still owns the exact live process.null.Why
Parallel workers stalled on harness permission prompts looked ready at the orchestration layer. Reusing the existing hook-derived terminal status exposes an exact positive signal without adding PTY-output inference.
Linked Issue
Fixes #13209
Visual Proof
N/A — this changes RPC/CLI JSON and text output plus documentation, not renderer UI.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/rpc/methods/orchestration-workers-recovery.test.ts— 12/12 passed.pnpm run typecheck— passed.Changed-file
oxlintandoxfmt --check— passed.pnpm run verify:bundled-skill-guidesandgit diff --check— passed.Full
pnpm test: 5,827 files / 54,516 tests passed; 10 tests in two unchanged renderer IME files failed. The branch has no diff fromorigin/mainundersrc/renderer,package.json,pnpm-lock.yaml, orconfig/vitest.config.ts; both files reproduce when run alone.Test-change rationale: rebasing picked up upstream commit
7afce2ea41, which replaced the worker observation's canonicalrunningvalue withlive. Four status values in this PR's newly added recovery tests were updated to that current contract. No existing assertion was deleted or weakened, and the old-hostrunningcompatibility case remains covered.AI Disclosure
OpenAI Codex was used for rebase/conflict resolution, the documentation follow-up, and verification.
External second-model review unavailable: Grok 4.6 and 4.5 produced no output or
VERDICT:within the single five-minute budget; verified via focused tests, typecheck, changed-file lint/format, and local diff review.Review
agentStatusis an optional field on an existing RPC result; newer clients fall back tonullwhen older hosts omit it.permissionstatus does not rule out prompts for agents without hook coverage.Agent skill upstream boundary
Notes
worker-showcall.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (typecheck and scoped checks pass; full-test baseline failures are documented above, and full lint/build are left to CI)Author