Skip to content

[bug] Android TV keeps its sign-in code open after an iPhone cancels phone setup #667

Closed

Description

@Rhainland

What happened

When an iPhone or iPad cancels phone setup of an Android TV (for example after the person taps Doesn't match on the code), the Android TV goes back to "Set up with your phone" but never withdraws the sign-in request it opened on the server. The request stays pending for the rest of its lifetime (up to 15 minutes, longer while it is being looked at).

Nothing gets signed in, because the TV stopped polling. But the abandoned code can still be approved: /activate or the Sign in a TV screen offers "Sign in ?" for it, and approving it says "Done. Your TV is signing in." for a TV that has moved on. The Apple TV withdraws its request in the same situation (the request ends canceled), and an Android phone sender denies it itself, so this only shows with an iPhone or iPad sender.

Steps to reproduce

  1. Leave an Android TV on "Set up with your phone".
  2. On a signed-in iPhone, accept the setup offer, choose a server, and tap Allow on the TV.
  3. When the phone shows the code, tap Doesn't match.
  4. Look up the TV's request on the server (GET /api/v2/auth/device?code=…): it is still pending.

Expected behavior

When the phone cancels, the TV withdraws its request with POST /api/v2/auth/device/cancel, as the Apple TV does, so the code can no longer be approved.

Device

Android TV

Device model and OS version

Android TV emulator (Android 14); sender iPhone 17 Pro simulator (iOS 26.5)

App version and build

Debug build from main at ff53561d3

Installed from

Built from source

Silo server version

main at 3bc9e58c5

Technical notes

PairingReceiver handles a peer Cancel in setup mode by returning to advertising without calling the device-login cancel for the attempt it started.

AI harness

Claude Code in T3 Code

AI tool(s)

Claude Code

AI model(s)

claude-opus-5-5

AI involvement

AI-assisted

Independent or adversarial review

n/a

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 and emulators while validating [v1] TV client sign-in & onboarding silo-server#1192)

Activity

  1. added
    bug
    priority: P2
    on Oct 22, 2026
  2. Quick104 commented on Oct 30, 2026

    @Quick104
    Contributor

    A related path on main (Android TV 8fff98ba3, iPad f3347940): choosing Doesn't match on an iPad against an Android TV also leaves the TV's request pending on the server until it expires. iOS sends cancel to the TV without denying the request, and the Android TV doesn't withdraw it, so the code stays approvable for up to 15 minutes. An Android phone doesn't hit this because it denies the request on the server; an Apple TV withdraws its own request.

    Found while validating Silo-Server/silo-server#1192. AI disclosure: run and written with Claude Code (claude-opus-5-5).

  3. self-assigned this
    on Oct 30, 2026
  4. Quick104 commented on Oct 30, 2026

    @Quick104
    Contributor

    🤖 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 Oct 31, 2026
    ad92e00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpriority: P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions