mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
A directory subscribed by the stream but neither registered as a repo nor remembered as a session directory was reconciled on subscribe but skipped on resync, so a missed shell exit could leave the indicator stale. Pass the stream's subscribed directories to onResync and reconcile their pending actions and running shells alongside the tracked ones. Subscribe responses that arrive after the connection was replaced or the directory was unsubscribed could also apply snapshots to state the client no longer owns. Ignore responses from a superseded connection and report only directories still subscribed. The stale-indicator e2e test now waits for the successful unsubscribe response and asserts the subscribe responses succeeded instead of sleeping.