Repository navigation
fix(omp): stop finished subagents holding the pane on working and name child rows - #29263
Conversation
Observe root-scoped native workers through the existing managed extension and hook store. Preserve input waits and timing, recover missing rosters, and fence stale callbacks and failed observations. Refs stablyai#28522. Verified with installed OMP 18.10.3 and hidden Electron rendering.
|
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:
Walkthrough
Priority: Severity of issue fixed: Medium Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
b531be8b-46e4-4e5f-9799-b47019625609
📒 Files selected for processing: 32
docs/site/content/docs/agents/supported.mdxsrc/main/agent-hooks/server-pi-normalization.test.tssrc/main/agent-hooks/server/server-status-application.tssrc/main/pi/agent-status-completion-delivery.test.tssrc/main/pi/agent-status-extension-omp-model.test.tssrc/main/pi/agent-status-extension-omp-registry-fixture.tssrc/main/pi/agent-status-extension-omp-registry.test.tssrc/main/pi/agent-status-extension-session-change.test.tssrc/main/pi/agent-status-extension-source.test.tssrc/main/pi/agent-status-extension-source.tssrc/main/pi/agent-status-extension-test-harness.tssrc/main/pi/agent-status-handler-source.tssrc/main/pi/agent-status-omp-consumer-delivery.test.tssrc/main/pi/agent-status-omp-registry-observer-source.tssrc/main/pi/agent-status-omp-registry-source.tssrc/main/pi/agent-status-omp-root-status-source.tssrc/main/pi/agent-status-post-queue-source.tssrc/main/pi/agent-status-session-boundary-source.tssrc/main/pi/agent-status-subagent-roster-source.tssrc/main/pi/omp-session-status-owner-source.tssrc/main/pi/omp-session-status-owner.test.tssrc/main/pi/omp-transcript-metadata.test.tssrc/main/runtime/orca-runtime-tests/terminal-creation-and-readiness.spec.tssrc/main/runtime/terminal/output/terminal-title-tracker.tssrc/main/runtime/terminal/output/terminal-transient-facts.tssrc/renderer/src/store/slices/agent-status-live-entry-builder.tssrc/renderer/src/store/slices/agent-status-omp-native-session-boundary.test.tssrc/shared/agent-hook-listener/providers/pi-family-events.tstests/e2e/helpers/omp-deterministic-provider.tstests/e2e/helpers/omp-native-observation.tstests/e2e/helpers/omp-subagent-status-runtime.tstests/e2e/omp-subagent-status.spec.ts
💤 Files with no reviewable changes: 2
- src/main/pi/agent-status-extension-session-change.test.ts
- src/main/pi/agent-status-completion-delivery.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
CodeRabbit follow-up, edba859: both functional findings are fixed with focused regressions. Fresh verification: 3,611 affected tests passed (56 skipped), full Docstring coverage warning: not adding blanket docstrings merely to reach 80%. |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
9f8d9a16-f171-4260-b703-4165d4a83d53
📒 Files selected for processing: 6
docs/site/content/docs/agents/supported.mdxsrc/main/pi/agent-status-extension-source.tssrc/main/pi/agent-status-omp-consumer-delivery.test.tssrc/main/runtime/orca-runtime-tests/terminal-creation-and-readiness.spec.tssrc/main/runtime/terminal/lifecycle/pty-exit-lifecycle.tssrc/main/runtime/terminal/output/terminal-transient-facts.ts
🚧 Files skipped from review as they are similar to previous changes: 2
- docs/site/content/docs/agents/supported.mdx
- src/main/pi/agent-status-extension-source.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
Latest-head review loop completed for 72180bd: CodeRabbit coverage is Remaining external gate: GitHub Actions runs for this head report |
|
Reshaped onto main with #30273/#30285, dropping foreground/prompt-marker machinery and retaining native OMP roster recovery with its necessary session fences. The reduced diff passes 578 targeted tests, full typechecking, changed-code quality, and installed OMP 18.12.1 hidden-Electron runs at 2×3 and 8×6 sessions/children; no CI pass is claimed. |
A smaller fix at the completion gate replaces it.
OMP lifecycle frames can arrive inverted or lose their terminal, leaving an id that held agent_end forever. Child rows also show OMP's child name. Fixes stablyai#30357
There was a problem hiding this comment.
Actionable comments posted: 2

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
a0010679-80c6-46c2-8e1a-aa9596f7925b
Files selected for processing: 5-
src/main/pi/agent-status-extension-async-subagents.test.tssrc/main/pi/agent-status-extension-omp-lifecycle.test.tssrc/main/pi/agent-status-extension-test-harness.tssrc/main/pi/agent-status-handler-source.tssrc/main/pi/agent-status-subagent-roster-source.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
ELI5
Orca can miss live OMP workers or keep showing workers that have finished. This checks OMP's own worker list so the existing sidebar shows named live children and clears finished or cancelled ones.
What Changed
docs/site/content/docs/agents/supported.mdx.Why
Lifecycle events alone cannot recover missed starts or verify quiet workers. Reading the native registry provides that evidence without building a second status system.
Linked Issue
Fixes #30357
Part of #28522.
Visual Proof
Captured from hidden Electron renderers through Playwright/CDP with real installed OMP 18.12.1; no test windows were revealed. Same scenario on both sides: two OMP root sessions, each running three named children (
IndexAudit,QuietWorker,ArtifactCheck) of thestatus-smokeagent.50c06d572a11)Scale run: 8 sessions × 6 children (48 concurrent)
The viewport shows the first six roots; the run asserted all eight.
Testing
pnpm tc, and changed-code quality passed; no CI pass claimed.Not run: Linux, Windows, mixed-version SSH, full test suite, full lint, release build, or performance benchmark.
AI Disclosure
AI-assisted investigation, implementation, review, verification, and drafting with OpenAI GPT-6.1.
Review
Static scope review found no outstanding findings; this is not maintainer approval.
Agent skill upstream boundary
Notes
Checklist
Maintainer changes
I replaced the native registry observer with a smaller fix in the place that decides when the pane is done. The contributor's commits are still on the branch, and my own commits revert their code.
Why the observer was replaced
omp_status) that the host parsed alongside the normal hook events. That gave OMP two status sources that could disagree.Root cause. OMP's
task:subagent:lifecycleframes don't always pair up. A wake turn can sendstartedbefore the previous run's terminal frame, and a wake turn whose finalize step throws never sends a terminal frame. Orca kept every id it saw start until a matching terminal frame arrived, so one leftover id blockedagent_endfor good.What the fix does
agent_endwithoutwillContinue), the extension drops any child that OMP no longer runs, then settles as before.ctx.getAsyncJobSnapshot()still lists its task job, or if its AgentRegistry session is streaming or still has pending background work. AgentRegistry is the one OMP gives extensions aspi.pi.agentId(builds before about 18.3), nothing is pruned and behaviour is the same as before.Evidence
completedframe dropped on purpose:agent_endand kept the ghost row.agent_endwith an empty roster at the root's final turn end.agent_end, and no live child was pruned early.Fixes #30357. Related: #30230 reported the same stuck spinner. This fixes it for OMP. Plain Pi (pi-subagents) leftovers come from a separate cause and are still open.