Skip to content

[bug] Android TV shows Resume instead of Play after a movie is marked watched #842

Closed

Description

@zZebrahz

Goal: Stop a movie during the credits, after it has passed the watched threshold, and have its detail page offer Play next time.

Steps:

  1. 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.
  2. Press Back to leave the player before the movie ends.
  3. Look at the movie's detail page.
  4. 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 and isInProgress goes back to true. It never checks played.

Two TV-only paths also ignore played:

  • LeafItemUserData.resumePositionSeconds() in TvItemDetailScreen.kt.
  • withPlaybackReturn in TvItemDetailViewModel.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

  1. added
    bug
    impact: polish
    priority: P2
    triaged
    on Nov 7, 2026
  2. self-assigned this
    on Nov 7, 2026
  3. zZebrahz commented on Nov 7, 2026

    @zZebrahz
    ContributorAuthor

    🤖 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.

  4. added a commit that references this issue on Nov 8, 2026
    a645347
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugimpact: polishpriority: P2triaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions