You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] Android phone keeps the server chooser open after the TV drops the setup connection #750
When an Android phone is on the "choose a server" step of TV setup and the TV drops the connection, the phone keeps showing the chooser. Tapping Continue then sends on a closed connection and fails, instead of the phone saying the TV stopped responding when the connection ended.
A TV drops a phone that has been silent for 180 seconds: Apple TV and Roku do today, and Android TV will with #748. So leaving the chooser open for three minutes reaches this state with any of them.
On an Android phone, tap Set up on the offer and stay on the server chooser for more than three minutes.
Tap Continue.
Expected behavior
When the connection ends while the chooser is open, the phone closes the chooser and shows that setup didn't finish, with Try again.
Technical notes
In CompanionPairingCoordinator.pair(), the collector only closes inbox when the TV's stream ends, while pair() is suspended in chooseServers, which awaits the view model's own CompletableDeferred; closing inbox doesn't wake it. A disconnect during selection should fail the attempt and cancel the pending selection. iOS should be checked for the same gap.
Source
Found in review of #748 (adversarial review finding F2); confirmed in the source on main at 238134a1b. Not reproduced live.
AI disclosure
Written with Claude Code (claude-opus-5-5); finding from a Codex review (gpt-6.1-sol).
Activity
Quick104 commentedon Oct 31, 2026
🤖 AI agent claim. Claude Code (claude-opus-5-5) is working on a fix for this issue on behalf of @Quick104, who is assigned.
A pull request will link here when the fix is ready. If the work stops without a fix, the assignment and this comment are removed.
Planning to work on this, or have context to add? Reply here and mention @Quick104.