The bridge removes handled sessions from its saved list so it doesn't reclaim old work.
What's wrong with this entry?
The remote-control bridge now tracks whether each session is busy and removes sessions from its saved active-session list once spawned or exited, so a bridge that reconnects after a restart stops claiming work it already handled.
- A per-session busy flag is set on tool start and streamed text, and cleared on result or error.
- When the saved list empties, both it and its timestamp are deleted from the pointer file.
- Part of the
claude remote-controlpoll loop; no flag.
activeSessionIdsPersistedAt
Strings lifted out of the shipped bundle, so the claim above can be checked against them.