Repository navigation
Description
What happened
When the Android phone app opens a remote-playback handoff code through a silo://device link, it shows the code as an ordinary TV sign-in. Tapping Sign in TV posts /api/v2/auth/device/approve. The server refuses a remote_playback request there with 409, and the app shows "That TV is already signed in." The card's decline button denies the request, which ends the handoff the other phone started.
The iOS app checks client_purpose and temporary after its lookup and stops with "This code isn't for signing in a TV."
Steps to reproduce
Found by reading the source on main (3627b86). It was not reproduced on a device.
- Start a remote-playback request on a Silo server (
POST /api/v2/auth/device/startwithclient_purpose: remote_playback,temporary: true), or send playback from a phone to a TV that isn't signed in. - On an Android phone signed in to that server, open
silo://device?url=<server origin>&code=<user code>. - The app shows the TV sign-in card. Tap Sign in TV.
Expected behavior
The app recognizes a code that isn't a TV sign-in (client_purpose other than device_login, or temporary: true) and says so without offering Sign in TV or decline, as the iOS app does.
Silo version / commit
silo-android main 3627b86; silo-server main.
Deployment
Any.
Clients affected
Android phone app (device approval screen).
Relevant logs
No logs available.
Technical notes
DevicePairingViewModel.lookup()(shared/src/commonMain/kotlin/org/siloserver/silo/viewmodel/DevicePairingViewModel.kt, around line 357) checks only the lookup'sstatus, neverclient_purposeortemporary.requestDecisionapproves throughrepository.approve, which posts/api/v2/auth/device/approve;pairingErrormaps the 409 toDevicePairingError.AlreadySignedIn(line 560).- The iOS app's equivalent check is in
TVApprovalModel.lookUp()in silo-apple (Pairing/Approver/TVApprovalModel.swift). - The phone that sends playback approves the handoff itself through
approve-handoff(SiloCastController), so the device approval screen should not decide these requests. - The web page
/activategot the same treatment in fix(web): send remote-playback requests on /activate back to the app silo-server#1868.
AI disclosure
- Harness: Claude Code
- Tools: Claude Code subagents; OpenAI Codex CLI (cross-provider review)
- Models: claude-opus-5-5; gpt-6.1-sol
- Involvement: Fully AI-generated, from a source trace; not reproduced on a device
- Independent review: the Codex review of fix(web): send remote-playback requests on /activate back to the app silo-server#1868 reached the same reading of the Android flow
Confirmations
- Reproduced on a real deployment
- Searched existing issues
Source: found in review of Silo-Server/silo-server#1868
Activity