Skip to content

[bug] Android TV phone setup waits forever when the phone goes quiet #739

Closed

Description

@Quick104

What happened

If a phone connects to set up an Android TV and then stops responding before anyone chooses Allow, the TV stays on "Allow this setup?" indefinitely. In the test it was still waiting after 6 min 50 s, until Don't allow was pressed on the TV. While it waits, it refuses every other phone or tablet at once ("Setup didn't finish", "Connection reset").

With the same steps, the Apple TV app gave up after 179 s (its 180 s limit); the Roku app uses the same limit. When the phone app is force-stopped instead, the connection closes and the Android TV recovers in about 11 s.

Steps to reproduce

  1. Put the Android TV on "Set up with your phone".
  2. On a phone, tap Set up on the offer and choose a server.
  3. When the TV shows "Allow this setup?", cut the phone's network.
  4. Wait more than three minutes.
  5. Try to set up the TV from a second phone or tablet.

Expected behavior

The TV drops a silent connection after the same 180 s idle limit as Apple TV and Roku, goes back to waiting, and accepts the next phone.

Device

Android TV

Device model and OS version

Android TV emulator (Android 14)

App version and build

Debug build from main at 8fff98ba3

Installed from

Built from source

Silo server version

main at 3cd9e484

Relevant server logs

No logs available.

Technical notes

android-shared/.../pairing/PairingReceiver.kt (around line 338) waits for the phone's next message with no deadline. The 10 s timeout in TlsPskPairingTransport.kt (around line 176) covers only the handshake, and TvPairingAdvertiser.kt (around line 130) refuses other phones while one session is open. Apple arms a 180 s watchdog in ReceiverPairingCoordinator.swift (around line 386); Roku does the same in AppSceneCompanion.bs.

AI harness

Claude Code in T3 Code

AI tool(s)

Claude Code; OpenAI Codex for the static review

AI model(s)

claude-opus-5-5, claude-sonnet-5-5, gpt-6.1-sol

AI involvement

AI-assisted

Independent or adversarial review

A cross-provider static review (gpt-6.1-sol) found the missing deadline; the live run confirmed it.

Confirmations

  • I searched open and recently closed issues and pull requests, and this is not already reported
  • I reproduced this myself on the device and app version above (reproduced by the AI agent on simulators, emulators, and Roku hardware)

Source: found while validating Silo-Server/silo-server#1192 (AI-run check, 2026-10-30).

Activity

  1. added
    bug
    on Oct 30, 2026
  2. added
    impact: usability
    priority: P2
    triaged
    on Oct 30, 2026
  3. self-assigned this
    on Oct 30, 2026
  4. Quick104 commented on Oct 30, 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.

  5. added a commit that references this issue on Nov 1, 2026
    25ebeef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugimpact: usabilitypriority: P2triaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions