Skip to content

[bug] Android phone keeps the server chooser open after the TV drops the setup connection #750

Open

Description

@Quick104

What happened

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.

Steps to reproduce

  1. Put a TV (Apple TV, Roku, or Android TV with fix(tv): drop a silent phone after three minutes of phone setup #748) on "Set up with your phone".
  2. On an Android phone, tap Set up on the offer and stay on the server chooser for more than three minutes.
  3. 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

  1. added
    bug
    on Oct 30, 2026
  2. added
    impact: usability
    priority: P2
    on Oct 30, 2026
  3. self-assigned this
    on Oct 31, 2026
  4. Quick104 commented on Oct 31, 2026

    @Quick104
    ContributorAuthor

    🤖 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugimpact: usabilitypriority: P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions