You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Orca keeps disconnecting from running Pi agents #7791
Starting recent version (Or previous one), Orca keeps disconnecting from running Pi agents in the middle of their work, while non orca agents stay connected.
The investigation reproduced two separate failure modes:
Pi awaits extension handlers, so Orca awaiting a stalled loopback status POST could hold the running Pi turn open indefinitely.
Pi emits session_shutdown for reload, new, resume, and fork while its PTY can remain alive, so normalizing that event to done could falsely remove a live agent from Running.
The merged fix takes hook delivery off the Pi critical path, bounds it to one active request plus one latest pending snapshot with a one-second abort, preserves the WSL fallback, and makes agent_end the only Pi completion event. Actual process exits still clear through PTY teardown.
Validation: 238 focused regression tests, 264 expanded Pi tests, and the full suite of 28,534 tests passed. Existing Pi processes must reload or restart once to load the updated managed extension.
Activity
fix(agents): keep Pi status through session_shutdown; open browser in…
AmethystLiang commentedon Jul 12, 2026
reviewing this now
AmethystLiang commentedon Jul 12, 2026
Resolved by #8355, merged as 21c0e45.
The investigation reproduced two separate failure modes:
The merged fix takes hook delivery off the Pi critical path, bounds it to one active request plus one latest pending snapshot with a one-second abort, preserves the WSL fallback, and makes agent_end the only Pi completion event. Actual process exits still clear through PTY teardown.
Validation: 238 focused regression tests, 264 expanded Pi tests, and the full suite of 28,534 tests passed. Existing Pi processes must reload or restart once to load the updated managed extension.
Closing as completed.