Repository navigation
Description
Goal: Stop a movie during the credits, after it has passed the watched threshold, and have its detail page offer Play next time.
Steps:
- On Android TV, play a movie and let it run past the server's watched threshold (90% by default), for example into the end credits.
- Press Back to leave the player before the movie ends.
- Look at the movie's detail page.
- Fully close and relaunch the app, then open the same detail page again.
Expected: The movie shows as watched and the main button reads Play.
Actual: The server marks the movie watched, but the main button reads "Resume " with Start Over next to it. It still says Resume after a full app relaunch. Reproduced with Nobody (1:31:41): stopped at 1:22:44 and the page kept showing "Resume 1:22:44".
What is slow/broken: Main button on the movie detail page (Resume vs Play) after a movie is marked watched.
Scope: Every time you stop between the watched threshold and the last 5 seconds of the runtime. Seen on Android TV. The phone app reads the same saved positions through the same shared code, so it likely does the same, but that's untested.
Version/branch: silo-android main f13a265 (TV debug build), silo-server main a52941174.
Deployment: Local sandbox, Android TV emulator (Android 16), signed in as a regular user.
Technical notes: The server handles this correctly. Once a write crosses the threshold, ResolveProgressState sets position to 0 and completed to true. The detail endpoint then returns played: true with no position_seconds.
The stale value comes from the app's local saved position:
RoomUserItemStateRepository.recordPositionOwned(android-shared) saves the raw exit position and never applies the watched threshold.applyLocalPlaybackProgress(shared/.../viewmodel/LocalUserStateOverlay.kt) lets the local position win whenever it's above the server's. A watched item always has server position 0, so the old position wins andisInProgressgoes back to true. It never checksplayed.
Two TV-only paths also ignore played:
LeafItemUserData.resumePositionSeconds()inTvItemDetailScreen.kt.withPlaybackReturninTvItemDetailViewModel.kt, which applies the player's exit position as soon as you press Back, before anything is re-fetched.
Possible fix:
- When a position crosses the watched threshold, clear the saved local position, as the server does. The client doesn't know the server's threshold setting today, so the server would need to send it, or the client could defer to the server once it reports
played. - Don't let local progress override a played item with no server position, unless the local progress is newer than the time the item was marked played.
Activity
zZebrahz commentedon Nov 7, 2026
🤖 AI agent claim. Claude Code (claude-opus-5-5) is working on a fix for this issue on behalf of @zZebrahz, 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 @zZebrahz.
fix(tv): show Play, not Resume, after a title is marked watched (Silo…