Repository navigation
Description
What happened
A tester who has the Silo phone app installed reports that every time they leave playback on Android TV, the TV shows the full-screen remote-control standby ("Ready for ", then the server name or "Remote control active") instead of returning to Silo. Pressing Back does not close it. The only way out is to move focus to Disconnect Remote and press it, after every movie or episode.
From the code, Back is not handled on this screen at all. TvSiloCastStandbyView draws over the whole app (TvAppNavigation.kt, the siloCastStandby?.let { TvSiloCastStandbyView(...) } block) and registers no back handler, so Back goes to the screen underneath while the standby keeps covering it.
The standby appears whenever nothing is playing and a non-passive phone controller is connected (TvSiloCastReceiver.refreshStandbyState). A phone becomes non-passive as soon as it sends a command or its full remote screen is opened (SiloCastController.markEngaged, setRemoteScreenVisible), so a household that uses the phone remote even once hits this on every later exit from playback.
Steps to reproduce
- Sign in to the same server on an Android phone and an Android TV on one network.
- Start a title on the TV.
- On the phone, open the remote for the TV, or send any command from it (pause, seek).
- On the TV, leave the player with the TV remote.
- The standby screen covers the TV. Press Back.
Expected behavior
Back on the standby screen closes it and returns to Silo, the same as pressing Disconnect Remote.
Actual: Back does not close the standby screen. Disconnect Remote is the only way out.
Device
Android TV
Device model and OS version
Not known. Reported by a tester; the behavior follows from the code on main.
App version and build
Not known for the tester. Code read at main cb2c32d.
Installed from
Not known
Silo server version
Not relevant; the standby screen is TV-side only.
Technical notes
Proposed small fix: make Back run Disconnect Remote on the standby screen. In androidTvApp/.../tv/ui/screens/cast/TvSiloCastStandbyView.kt:
import androidx.activity.compose.BackHandler
@Composable
fun TvSiloCastStandbyView(
state: TvSiloCastReceiver.StandbyState,
onDisconnect: () -> Unit,
) {
BackHandler(onBack = onDisconnect)
// ...existing body
}onDisconnect is already wired to TvSiloCastReceiver.disconnectRemoteControl(), which closes only the controllers that put the standby up, sends them the TvDisconnected goodbye and clears the standby. Passive controllers stay connected. The change is a few lines and does not touch the receiver, the phone, or the wire protocol. Disconnecting rather than only hiding the screen is deliberate: a hide-only Back needs a new "dismissed" state in the receiver, because the next refreshStandbyState() would put the screen back while the phone is still connected.
Relation to PR #567. #567 ("hand control back to the TV when Back leaves a phone-controlled title") fixes the wider problem: leaving the player with the TV remote releases the phone before the player exits, so the standby never appears, and it also makes Back on the standby disconnect. It is the right long-term fix, but it has been idle since 2026-10-14: it conflicts with main, its evidence page has no captures yet, and it has not been run on a phone and TV together. It also changes playback exit, profile hand-back timing (a wait of up to 15 s) and the phone remote's dismissal, and each of those needs a device test before it can merge. The Back handler above can ship on its own in the meantime.
Both changes are worth having. Even after #567, the standby still shows in cases #567 keeps on purpose: after a Stop sent from the phone, when the phone connects while the TV is idle, or while a profile handoff prepares a title. In each of those, Back should still get the viewer off the screen. If #567 lands first, its standby Back handling covers this issue. If this lands first, #567 rebases onto it and drops its own standby change.
Apple TV's standby view has no Back handling either (Silo-Server/silo-apple#1232 tracks the parity work for #567).
AI harness
Claude Code (CLI 2.1.330)
AI tool(s)
Claude Code
AI model(s)
claude-opus-5-5
AI involvement
AI-assisted: the AI traced the behavior in the app source from a tester's report and drafted this issue at the maintainer's request.
Independent or adversarial review
None performed. The cause comes from reading the source on main; it was not reproduced on a device for this report.
Confirmations
- I searched open and recently closed issues and pull requests, and this is not already reported (searched "remote control standby", "disconnect remote", "cast standby", "remote control active"; the closest is PR fix(tv): hand control back to the TV when Back leaves a phone-controlled title #567, linked above)
- I reproduced this myself on the device and app version above (not reproduced on a device; reported by a tester and traced in source)
Activity