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 TV keeps its sign-in code open after an iPhone cancels phone setup #667
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
Leave an Android TV on "Set up with your phone".
On a signed-in iPhone, accept the setup offer, choose a server, and tap Allow on the TV.
When the phone shows the code, tap Doesn't match.
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
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).
Activity
Quick104 commentedon Oct 30, 2026
A related path on
main(Android TV8fff98ba3, iPadf3347940): 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 sendscancelto 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).
Quick104 commentedon Oct 30, 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.
fix(tv): withdraw the sign-in request when a phone abandons setup (Si…