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
fix(tv): the episode carousel keeps a finished season finale unwatched after returning from the player #956
On Android TV, after you finish a season's last episode and the series page moves on to the next season's first episode, the finished episode stays unwatched in the episode carousel. Focusing it brings back that stale state. The server already has the episode and its season as watched.
Source: found in review of #954. This follows that PR and waits for it to merge, because the fix needs the read after the player's stop that #954 adds.
Steps (Android TV):
Open a series and play the last episode of a season to its credits.
Back out of the player. The page selects the next season's first episode.
Move left in the carousel to the episode you just finished.
Expected: it shows as watched. Actual: it keeps its pre-playback state until the page is opened again.
Cause (main, TvItemDetailViewModel.kt): the carousel keeps other seasons' pages in episodeWindow. loadCarouselNeighbor returns early when a season's page is already there, and the refresh on return re-reads only the selected season. Nothing re-reads the played episode's season once the selection has moved on. This doesn't depend on when the stop lands: an instant stop shows the same thing.
Suggested fix: after the stop lands, also re-read the played episode's season when it differs from the selected one, and replace its carousel page without changing the selected season.
Evidence so far: an adversarial review of #954 reproduced it with the existing TvNextUpSelectionHandoffTest ViewModel fixture. The server returned the episode and season as watched, but the carousel row stayed unwatched and its season got no further read. Not reproduced on a device.
AI disclosure: drafted by Claude Code in T3 Code (claude-opus-5-5), from a review finding by gpt-6.1-sol, at the project owner's request.
Activity