Preserve draft terminal state during snapshot cleanup

- add `collectActiveTerminalThreadIds` to keep non-deleted server threads plus local draft threads
- use helper in root event router before orphan terminal state removal
- add unit tests for retained and deleted thread behavior
b9e529e0b5Julius Marminge committed on 3/6/2026, 7:41:23 AM· committed by Julius Marmingeparent0f702fc
3 files changedLine totals unavailable