Emit terminal activity events from subprocess polling

- Add cross-platform subprocess polling in `TerminalManager` and emit `activity` events when child-process state changes
- Update web store to derive `runningTerminalIds` from `activity.hasRunningSubprocess` instead of start/restart events
- Extend terminal contracts and tests to include the new `activity` event type

Co-authored-by: codex <codex@users.noreply.github.com>
ddc4a93c36Julius Marminge committed on 2/13/2026, 6:20:01 AM· committed by Julius Marmingeparent9015792
6 files changedLine totals unavailable