Patch Changes
-
fix: tear down the
ok uisibling whenok startexits via a signalok startspawns a detachedok uiprocess to serve the editor shell. On
Ctrl+C(SIGINT/SIGTERM) the CLI destroyed the collab server but left that UI
child running until its 12-hour safety timer expired, holding its port so the
nextok startbound a different one. The signal path now runs the same guarded
UI teardown as idle-shutdown — SIGTERM, wait out a grace window, then escalate
to SIGKILL — scoped byspawnedUiPidto the sibling this process actually
spawned, so a lock holder we did not spawn (a desktop shell, another session) is
left alone.