fix(opencode): Stop ends work launched while it runs

A user Stop drained background shells and stopped subagents before it
interrupted the foreground turn, and stopped only the subagents it saw when
it began. A shell the turn launched while its interrupt was in flight, or a
subagent launched while a shell remove waited, outlived Stop.

Stop now interrupts the foreground turn before its final drain, waits for
that execution to end so every launch it made has been seen, and re-derives
the subagent sessions to stop on each pass until no new shell or session
appears. Steering interrupts are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
c88510a576Julius Marminge committed on 11/10/2026, 11:40:38 AMparentc9bdd13

Checks

24 successful · 11 skipped
All checks passed
2 files changedLine totals unavailable