Files
orca/src
Neil dfcb2aa323 fix(agents): an explicit resume into a Restart-stopped pane runs --resume there, not the pane's old launch
Restart stops the pane's PTY (stopExact keepHistory) and asks the host to ensureAgentSession with the pane's provider session and tab/leaf. The stopped PTY still owned the leaf, so the host adopted it and woke it with its original argv: no --resume, a new conversation. When a launch carries a provider session and the leaf's PTY is not running, the host now names it as the stopped owner, so the leaf spawns fresh with the resume command. Live panes are still adopted; plain reconnects (no provider session) still wake the original.
2026-11-11 03:38:06 -08:00
..