fix: preserve browser and debugger ownership across close and reconnect
Merged
TH
2d ago+220+220+012345678901234567890123456789-98-98-01234567890123456789
Summary
Keep the managed browser fleet, Limrun log reader and Metro debugger accountable for work that overlaps close or cancellation. Each owner has a separate commit with focused regressions.
Before / after
- Close during a same-name browser open could clear the daemon record. The pending open now retains it. Startup cleanup also counts sibling opens, and refused closes retain launched membership.
- Cancel during Limrun reader acquisition could hand a reader to the poller. Reconnect now disposes that reader. A failed iOS reader constructor also disconnects its client.
- Evaluate after a Metro debugger disconnect could wait for the command timeout. The inspector now immediately reports the closed connection.
Validation
All 21 checks passed at 2210c508. CI pending at de43953d4a1bb0afab05c7158424d0a54e15a56e. The updated regressions cover the recovery hint, its propagation through session teardown, and ownership retention until a completed close. Validation runs in CI only.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.