mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
A cloud Restart stopped the pane's host terminal, ensured a --resume in its
leaf, then reconnected. But the pane's own transport reacted to the stop
ending its stream by resubscribing (session.tabs.activate), which woke the
stopped leaf with its ORIGINAL launch before the ensure arrived; the ensure
then adopted that live terminal and the resume was lost (a new
conversation). Seen 3/3 on golden 4020131de0.
- Release the pane's transport before the stop (split releasePaneForRestart
out of handleRestartPane), so nothing reattaches on its own.
- resumeRemotePaneAgent returns the ensured terminal; on 'adopted' it stops
that terminal and ensures once more, else fails (Couldn't restart).
- Reconnect only after the host lists that exact terminal live in the
pane's tab and leaf (bounded 15 s, else Couldn't restart).
- After reconnecting, the pane must bind that handle; any other handle
shows Couldn't restart. A failed restart reattaches the pane so it is
never left empty.