mirror of
https://github.com/stablyai/orca.git
synced 2026-10-17 16:02:55 +00:00
shutdownCompletedAgentPaneForHibernation already unregisters live pane handlers before pty.kill to prevent phantom notifications from the teardown flush, but a parked tab's byte watcher rides the dispatcher sidecar that call does not touch. Dispose it after a successful kill — deliberately not before: a failed kill leaves the session running and it must keep its watcher. This is the hibernation analog of the worktree-shutdown wiring and does not exist in PR #7214 yet (worth adopting there); regression tests cover both the success and kill-failure paths. Also: "afterwards" → "afterward" in the parking doc (static analysis). Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com> Co-authored-by: Orca <help@stably.ai>