fix(android): release sessions after their ADB serial disappears
聽
TH
7m ago+225+225+012345678901234567890123456789-24-24-01234567890123456789
Summary
Plain Android close can end its session after the app-stop probe fails and other cleanup succeeds. A valid ADB inventory that omits the exact serial establishes absence, including a header-only list. Listed serials and inconclusive reads preserve the original error and claim.
Closes #5376.
Before / after
With the sole ADB transport disconnected, close at cd87454 exited 1 with android-process-probe-unavailable and kept the claim. At f0e08d0 it exited 0, logged the absent-device diagnostic, and left both lists empty. Reconnecting and reopening in the same workspace succeeded.
Validation
- Compared branch-built CLIs on an API 37 emulator with a private ADB server and a sole TCP transport. The snapshot used
android-helper0.21.47-dev. The post-disconnect list contained only ADB's header. - The sole-device regression failed at
cd87454. Atf0e08d0, 23 focused tests, typecheck, Fallow, command-doc checks, and build passed. - The prior live Pixel run verified the nonempty inventory case at
cd87454.

Open in [code]smith 路 Need help on this PR? Tag @codesmith-bot with what you need.