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(player): count reaching the end credits as watched in the player's own checks - #1256
Silo-Server/silo-server#5133 makes the server mark a movie or episode watched once streamed playback reaches the played file's end credits, or passes "Mark watched at" (90% by default), whichever comes first. Two checks in the Apple player still used a fixed 90%:
Series page after leaving the player. Leaving an episode during its credits below 90%, with Next Up not showing, kept the Series page on that episode even though the server had just marked it watched. On a sandbox running #5133, leaving S1E16 at 85% inside its credits left the page on "Play S1·E16" while the episode card already showed its watched check.
Downloads. A downloaded episode stopped in its credits stayed unfinished on the device, so delete-watched retention and the reclaim sheet ignored it. Its progress then went to POST /api/v2/sync/progress as a plain position. That request doesn't name the file that played, so the server judges it by percentage alone and kept the episode in progress (position 1127.8 s of 1304, completed = false).
Solution
Both checks now count reaching the end credits as watched, next to the 90% fallback.
PlayerMarkerTimeline.endCreditsStart(duration:isEpisode:) finds the end credits the way the server's CreditsLimits.EndCreditsStart does: the last credits marker that starts in the file's tail window (an episode's last 450 s or 40%, anything else's last 900 s or 25%) and before its end. Credits placed earlier in the file, such as a misplaced marker in an old download manifest, don't count.
cleanup() reads the credits start before teardown clears the markers. It uses it for the Series page hint and hands it to the deferred final offline write.
Offline progress that reached the credits is queued at the end of the file. The server then stores it watched with no resume point, the same row a streamed stop at the credits writes. Below the credits the real position goes up, so the server's own "Mark watched at" setting still applies. The local resume point always keeps the real position. Audiobooks don't pass the new argument and are unchanged.
This needs no API change, so it works with servers that predate #5133. The alternative, a new /sync/progress field naming the played file, would be rejected by older servers and needs a capability gate in both apps.
Other clients: Android Silo-Server/silo-android#1037 (fix in Silo-Server/silo-android#1038); Roku N/A (its Series page moves on only from a finished episode, and it has no downloads); Web N/A (no offline playback, and its pages read the server's watched state)
Validation
Reproduced on a sandbox server running silo-server#5133's head (672a89cd), with the unfixed app (07c4c0d4) and this branch on two iOS 27 simulators, each signed in as its own test user. Credits markers were set on three episodes, each inside the tail window and below 90%.
Series page: after leaving S1E16 at 85% inside its credits, the unfixed app stayed on E16. The fixed app moved to E17, and to E19 after the same steps on E18. The server stored the episode watched in both cases.
Downloads: E17 was downloaded, played from Downloads inside its credits, closed, and synced. The unfixed app's sync left position 1127.8, completed = false and the fixed app's left position 0, completed = true. The server logged no playback session for these plays, so the result came from the offline queue.
SeriesPlaybackReturnTests.testLeavingDuringTheEndCreditsFinishesTheEpisode fails on 07c4c0d4 for the reported reason ("Optional(false) is not equal to Optional(true)", stopped at 2250 s inside the credits) and passes here. PlayerMarkerTimelineTests.testEndCreditsStartIsTheLastCreditsInTheTailWindow covers the tail window.
OfflineCreditsProgressTests checks the position queued for the server: the duration for a stop in the credits, the real position otherwise. It tests a helper this PR adds, so it can't run on the base; changing the queued position back to the plain position fails it.
OfflineCreditsProgressTests, SeriesPlaybackReturnTests, PlayerMarkerTimelineTests, MarkerReconciliationTests and ProgressSyncV2Tests: 60 tests, 0 failures on an iOS 27.2 simulator (Xcode 27.2). tvOS and macOS were compiled through the build service.
The live sandbox run covers the full offline path. A test covers only the decision, since PlayerViewModel writes to DownloadManager.shared with no seam to observe it.
Servers without silo-server#5133. That PR has merged. Against a server that predates it, the Series page can move on from an episode the server still has in progress, until the page refreshes. Offline credits stops would also count as watched there, unlike streamed ones.
"Mark watched at" set to 100. The server's percentage check is strict (>), so an item queued at its full duration doesn't count as watched. It stays in progress with its resume point at the end. An offline natural end behaves the same way today.
Server-side exceptions. For a streamed stop, the server ignores the credits when the session switched to another file or couldn't tell which version played. The client sees only the file it is playing, so in those rare cases the Series page can move on while the server keeps the episode in progress.
The client copies the server's tail-window constants. If credits_placement.go is retuned, this file has to follow.
Follow-ups
The offline progress queue keeps only the newest sample per item. A viewer who reaches the credits offline, then seeks back before closing, uploads the earlier position, and the server keeps the episode in progress while the device shows it watched. The same already happens past 90%. Fixing it needs a completion bit on queued entries: Offline progress loses a watched mark when a later sample replaces it #1257.
Visual review: 1 round, captures from the tested build
Member
Round 1
Sol
better, no score
Opus
better, no score
Gemini
better, no score
Fixed: a test for the position offline progress queues (Opus, Gemini), in d6518a6, which changes no behavior. Answered: older servers (Opus, Sol), the 100% threshold (Sol), and a file spanning two episodes, which already advances one row past 90% today (Sol).
Plan round: Sol, Opus and Gemini. Adopted: the queued position moves to the end only when the credits were reached, so the server's own threshold still applies below them (Opus, Sol); the episode check reads the watch detail's type alone (Opus). Answered: the queue coalescing and 100% threshold limits above.
AI Disclosure
Harness: Claude Code in T3 Code
Tool(s): Claude Code; Codex CLI and Antigravity for the council reviewers
Model(s): claude-opus-5-5 (implementation, code review); claude-sonnet-5-5 (code-review cleanup finder and validation check); gpt-6.2-sol, claude-opus-5-5, gemini-4-neon (council)
Involvement: Fully AI-generated; not yet verified by a person
Adversarial review: a plan round, a high-level code review that switched the episode check to SiloMediaType.isEpisode, a simplify pass that changed nothing, and the council review above.
Count reaching end credits as watched in PlayerViewModel completion checks
Adds PlayerViewModel.endCreditsStart, which picks the last credits marker within a tail window (450s or 40% of duration for episodes, 900s or 25% otherwise) via PlayerMarkerTimeline.endCreditsStart
PlayerViewModel.reachesWatched now marks a sample watched when playback reaches the end-credits start, not only past the 90% threshold; cleanup uses this shared check for the series return
DownloadManager.recordOfflineProgress gains an optional queuedPosition argument, so offline writes can save the actual playback position locally while queuing the full duration for sync when the credits were reached
Behavioral Change: episodes stopped during end credits (below 90%) are now marked completed and queue the full duration; positions before the credits are unchanged
…s own checks
The server now marks a movie or episode watched once playback reaches the
played file's end credits (silo-server#5133). Two checks in the player still
used a fixed 90%:
- Leaving an episode during its credits below 90% kept the Series page on
the episode the server had just marked watched.
- A download stopped in its credits stayed unfinished on the device, and
its synced progress went up as a plain position the server judges by
percentage alone.
Both now also count the end credits, found the way the server finds them:
the last credits marker that starts in the file's tail window. Offline
progress that reached the credits is queued at the end of the file, so the
server stores it watched; below the credits the real position goes up.
Closes#1255
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The player now treats reaching a qualifying end-credits marker as watched for playback returns and offline progress. Offline progress can queue the full duration while retaining the actual playback position locally.
Changes: End Credits Watched State
Layer / File(s)
Summary
Select the end-credits boundary iosApp/iosApp/Screens/Player/PlayerMarkerTimeline.swift, iosApp/Tests/PlayerMarkerTimelineTests.swift
The timeline selects the latest credits start within the episode or non-episode tail window. Tests cover both windows and cases that return no qualifying start.
Apply the boundary to playback and offline progress iosApp/iosApp/Screens/Player/PlayerViewModel.swift, iosApp/iosApp/Downloads/DownloadManager.swift, iosApp/Tests/SeriesPlaybackReturnTests.swift
Playback cleanup uses the credits start when determining completion. Offline progress can mark playback complete at that start and queue the full duration while retaining the actual position locally. Tests cover leaving during credits and cases that remain incomplete.
sequenceDiagram
participant PlayerViewModel
participant PlayerMarkerTimeline
participant DownloadManager
PlayerViewModel->>PlayerMarkerTimeline: Find qualifying end-credits start
PlayerMarkerTimeline-->>PlayerViewModel: Return credits start or nil
PlayerViewModel->>PlayerViewModel: Determine watched state during cleanup
PlayerViewModel->>DownloadManager: Record local and queued progress positions
Loading
Possibly related issues
Issue 311 tracks iOS Skip Credits and missing credits marker results. This change selects an end-credits marker, but the available issue summary does not establish that it fixes the tracked results.
Issue 312 tracks tvOS Skip Credits and missing credits marker results. The changed marker-selection code is shared with tvOS, but the summary says its blocking focus issues are separate.
Suggested reviewers:rhainland, blurbery
Merge Risk: Minimal · up to 3de22
The changes implement credits-aware completion without an established merge-blocking failure. Compatibility with a 100% watched setting and preservation of resume position after server readback remain unverified.
Security architecture risk: Minimal · up to 3de22
The inspected change establishes no material weakening of security, ownership, or failure containment. It changes completion and synchronization behavior within the existing playback flow, without establishing broader access or authority.
Retained concerns
No architecture-level concerns identified.
Security review details
Security Blast Radius
inferred — The demonstrated exposure is an item's watched and resume state in the existing download/progress flow, including completion-dependent retention. The inspected changes do not establish a new external entrypoint or broader server, tenant, credential, or infrastructure authority.
Trust Boundaries and Controls
observed — Marker data now influences completion, but the boundary lookup is constrained to valid credits ranges in the file's tail. Existing marker reconciliation also checks cancellation, request identity, playback session identity, and selected file identity before applying a refreshed snapshot.
observed — The changed queue write retains the same media-item identifier and event timestamp. Progress reads remain fenced to their captured owner and apply only complete successful results; failed or stale-owner reads do not replace local state.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: end-credits playback now counts as watched in the player's Series-return and offline-progress checks. It is specific, uses a conventional prefix, and matches the chang…
Linked Issues check
Issue #1255 requires the Apple player to treat reaching the played version's end-credits marker as watched, alongside the 90% fallback, in two checks.
(1) Series return focus: `PlayerMarkerTimeline.e…
Out of Scope Changes check
All changed areas map to #1255. PlayerMarkerTimeline.swift adds the end-credits selection. PlayerViewModel.swift applies it in cleanup() for the Series hint and the final offline write. `Downloa…
Description check
The description is detailed and directly related to the changeset. It explains the problem (Series page return hint and offline download progress ignoring end-credits watched state while using a fixed…
Full details: Title check
Explanation
The title names the main change: end-credits playback now counts as watched in the player's Series-return and offline-progress checks. It is specific, uses a conventional prefix, and matches the changeset, which adds endCreditsStart, updates cleanup() and the offline queue, and adds tests for both checks.
Full details: Linked Issues check
Explanation
Issue #1255 requires the Apple player to treat reaching the played version's end-credits marker as watched, alongside the 90% fallback, in two checks.
(1) Series return focus: PlayerMarkerTimeline.endCreditsStart(duration:isEpisode:) selects the last credits marker that starts in the tail window (episode: last min(450 s, 40%); other: last min(900 s, 25%)) and before its end. PlayerViewModel.cleanup() reads this value before marker teardown and uses it when publishing the Series return as completed. The PR's test SeriesPlaybackReturnTests.testLeavingDuringTheEndCreditsFinishesTheEpisode covers this path, and the PR reports it fails on the base commit and passes at head.
(2) Offline progress: recordOfflineProgress gains queuedPosition. When credits were reached, the queued position is the file end, so the server stores the item watched. Below credits, the real position is queued, so the server's own threshold still applies. The local resume point keeps the real position. This meets the issue's offline requirement without an API change. It is a third option, not the completed flag or the server change the issue lists, but the issue allows either of the first two options and does not forbid this approach.
Limits remain. With "Mark watched at" set to 100, the server's strict > check leaves a full-duration queued position in progress. Seeking back after reaching credits can upload an earlier position. Both are documented by the PR as limits or follow-ups. They do not remove the implemented requirement, but the 100% case means offline credits-as-watched depends on the server threshold setting.
No coding requirement from #1255 is unmet in the reviewed evidence. Pairing issue #5133 is server-side and outside this PR.
Full details: Out of Scope Changes check
Explanation
All changed areas map to #1255. PlayerMarkerTimeline.swift adds the end-credits selection. PlayerViewModel.swift applies it in cleanup() for the Series hint and the final offline write. DownloadManager.swift adds the optional queuedPosition argument, which defaults to nil, so existing callers keep their behavior. PlayerMarkerTimelineTests.swift and SeriesPlaybackReturnTests.swift test the new behavior. Audiobooks do not pass the new argument, and the PR states they are unchanged. No unrelated change was identified in the summary. The Android gap (silo-android#1037) is listed as a follow-up and is not included in this diff.
Full details: Description check
Explanation
The description is detailed and directly related to the changeset. It explains the problem (Series page return hint and offline download progress ignoring end-credits watched state while using a fixed 90% threshold), the solution (PlayerMarkerTimeline.endCreditsStart, cleanup() reading credits start before teardown, and queuedPosition for offline progress), validation (tests such as SeriesPlaybackReturnTests and OfflineCreditsProgressTests, plus a sandbox run), and risks and follow-ups. It matches the summarized files and their behavior.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Posted by the /silo run on the reviewer's behalf; its review tool couldn't attach a commit. Score 7/10.
S1, medium: the Series page can disagree with a server that predates silo-server#5133. Closing a streamed episode in its credits below the threshold selects the next episode while such a server keeps the current one in progress. Suggested repair: gate the hint on server support, or reconcile with refreshed watch state. Run's answer: disclosed under Risks. The PR is meant to merge after #5133, and the Series page corrects itself on its next refresh.
S2, medium: a file that spans two episodes can be offered again. Closing such a file in its final credits below 90% advances the page one row, to the second episode, which plays the same file. Suggested repair: use the file's episode span or the finalized watch state. Run's answer: this already happens on main when the same file is closed past 90%. The hint has always advanced exactly one row. It's outside this change; noted for a follow-up.
S3, medium: at a "Mark watched at" of 100%, an offline credits stop loses its resume point. The upload moves the position to the end, the server's strict > check keeps the item in progress, and the app's near-end resume rule restarts it from the beginning. Suggested repair: keep the sampled position when the promotion can't complete the item. Run's answer: disclosed under Risks. The client doesn't know the server's threshold, and an offline natural end behaves the same way today.
Two low-severity findings, inline. Nothing blocking. I checked endCreditsStart against the server's CreditsLimits.EndCreditsStart: window, >= start, < duration and last-occurrence-wins all match. The captured finalEndCreditsStart is read before teardown empties markerTimeline and nils currentWatchDetail. Watch Party uses progressReportPosition, the Keep Watching remount write runs while markers are still live, and audiobooks don't pass queuedPosition. On /sync/progress, the server judges position/duration with the client's duration, so promoting to the duration stores the item as completed, except with "Mark watched at" set to 100, which the PR already notes.
AI disclosure: written by claude-opus-5-5 as an automated adversarial reviewer; not verified by a person.
Checked PlayerMarkerTimeline.endCreditsStart against the server's CreditsLimits.EndCreditsStart and ProgressThresholds.Watched, traced cleanup() teardown ordering across iOS/tvOS/macOS, and checked offline progress queuing, Watch Party, shuffle, Keep Watching, multipart, and audiobooks. The implementation matches the server's tail-window and completion rules; one low-severity test gap is noted inline.
AI disclosure: written by gemini-4-neon as an automated adversarial reviewer; not verified by a person.
Moves the offline sample decision into PlayerViewModel.offlineProgressSample,
unchanged, and tests it: a stop in the end credits below 90% goes up at the
end of the file, while a stop before the credits, or past 90% with no
credits, keeps its real position for the server's own threshold.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
silo-triageBot
added
size/L
200–499 added + deleted lines (all files); change volume, not priority.
and removed
size/M
50–199 added + deleted lines (all files); change volume, not priority.
labels
Nov 23, 2026
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.
The reason will be displayed to describe this comment to others. Learn more.
Major · Data Integrity & Integration · Heavy lift
Preserve credits completion with a 100% watched setting.
For a 2,600-second episode stopped at 2,250 seconds after credits start, this queues 2,600 seconds. With the documented strict > server threshold and a 100% setting, the server still records the episode as incomplete. Local completion becomes true, but offline sync never transfers that completion.
Use a completion representation that the server accepts independently of the percentage threshold. Coordinate the server/API change if necessary. Preserve the real queued position below credits.
This conflicts with the linked issue's requirement to count reaching end credits as watched.
The reason will be displayed to describe this comment to others. Learn more.
Known and disclosed under Risks. At "Mark watched at" 100 the server never counts a percentage as watched, since position/duration > 1.0 can't hold. An offline natural end already stays in progress there today, and this PR adds the same outcome for an offline credits stop, with the resume point at the end. Fixing it for every threshold needs /sync/progress to carry a completion or the played file, but servers that predate that field reject it with a 422, so both apps would need a capability check. That was weighed when planning this PR and kept out of scope; the follow-up in #1257 changes the same upload path and can take it on.
No findings to fix. The Series page hint and offline progress now follow the server's end-credits rule, and I found no defect this change introduces.
What I checked
endCreditsStart matches the server's CreditsLimits.EndCreditsStart: the same tail windows, the last credits occurrence wins, and the start counts at >=. cleanup() reads it before teardown clears the markers, and duration survives teardown.
The five offline writes in PlayerViewModel each read either the live markers or the captured value. The audiobook caller doesn't pass queuedPosition, so it's unchanged.
SeriesPlaybackReturnTests.testLeavingDuringTheEndCreditsFinishesTheEpisode fails on the base (07c4c0d4) with Optional(false) is not equal to Optional(true) and passes on this head. OfflineCreditsProgressTests, SeriesPlaybackReturnTests, PlayerMarkerTimelineTests, MarkerReconciliationTests and ProgressSyncV2Tests ran 60 tests with 0 failures on an iOS 27.2 simulator (Xcode 27.2). The other two new tests call code this PR adds, so they can't run on the base.
The evidence page was captured from 3de2218. d6518a6 only moves the offline decision into a helper and adds a test, so the captures still match this head.
Left for the maintainers
The PR already lists these under Risks, and the review found nothing that changes them:
"Mark watched at" set to 100: an offline stop in the credits uploads the full duration, the server's strict > keeps the item in progress, and its server resume point moves to the end. Fixing that needs /sync/progress to carry a completion or the played file.
A replan to a file other than the pinned one: the Series page moves on, while the server ignores credits when the session's file changed and keeps the episode in progress until the page refreshes.
A file that spans two episodes advances the page one row, as it already does past 90% on main.
Validated features: none affected. Neither this PR nor #1255 is tied to a validation task, and no passed case changes behavior. The diff touches only the player-close path, offline progress recording, and the new credits helper.
User manual: the draft docs PR Silo-Server/siloserver.org#455 states the end-credits rule with no offline exception, and this PR makes Apple downloads follow it.
Other clients: Android is tracked in Silo-Server/silo-android#1037, with its fix in Silo-Server/silo-android#1038. Roku and Web need no change. Roku's Series page moves on only from a finished episode, and Roku has no downloads. Web has no offline playback. I added the Other clients: line to the body, and the first risk now says silo-server#5133 has merged.
No member found a defect this PR introduces. Sol and Gemini raised the file-switch case, and Sol raised the 100% threshold and the two-episode file, all covered above. Sol scored lower mainly for limits that predate this change. Opus noted that the client copies the server's tail-window constants, which the PR already lists as a risk.
Fit: 9/10 · Readiness: 9/10 — ready
Fit: the Apple client now follows the server's watched rule with no new API, setting, or surface, and the Android gap has a fix PR open.
Readiness: a test that fails on the base and the before-and-after on the evidence page show the Series page change. The live sync result there shows the offline change. The validation check ran, and the remaining limits are disclosed and bounded.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bugSomething isn't workingpriority: P2Limited scope, workaround exists, or polishsize/L200–499 added + deleted lines (all files); change volume, not priority.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Silo-Server/silo-server#5133 makes the server mark a movie or episode watched once streamed playback reaches the played file's end credits, or passes "Mark watched at" (90% by default), whichever comes first. Two checks in the Apple player still used a fixed 90%:
POST /api/v2/sync/progressas a plain position. That request doesn't name the file that played, so the server judges it by percentage alone and kept the episode in progress (position 1127.8 s of 1304,completed = false).Solution
Both checks now count reaching the end credits as watched, next to the 90% fallback.
PlayerMarkerTimeline.endCreditsStart(duration:isEpisode:)finds the end credits the way the server'sCreditsLimits.EndCreditsStartdoes: the last credits marker that starts in the file's tail window (an episode's last 450 s or 40%, anything else's last 900 s or 25%) and before its end. Credits placed earlier in the file, such as a misplaced marker in an old download manifest, don't count.cleanup()reads the credits start before teardown clears the markers. It uses it for the Series page hint and hands it to the deferred final offline write.This needs no API change, so it works with servers that predate #5133. The alternative, a new
/sync/progressfield naming the played file, would be rejected by older servers and needs a capability gate in both apps.Closes #1255
Other clients: Android Silo-Server/silo-android#1037 (fix in Silo-Server/silo-android#1038); Roku N/A (its Series page moves on only from a finished episode, and it has no downloads); Web N/A (no offline playback, and its pages read the server's watched state)
Validation
672a89cd), with the unfixed app (07c4c0d4) and this branch on two iOS 27 simulators, each signed in as its own test user. Credits markers were set on three episodes, each inside the tail window and below 90%.position 1127.8, completed = falseand the fixed app's leftposition 0, completed = true. The server logged no playback session for these plays, so the result came from the offline queue.SeriesPlaybackReturnTests.testLeavingDuringTheEndCreditsFinishesTheEpisodefails on07c4c0d4for the reported reason ("Optional(false) is not equal to Optional(true)", stopped at 2250 s inside the credits) and passes here.PlayerMarkerTimelineTests.testEndCreditsStartIsTheLastCreditsInTheTailWindowcovers the tail window.OfflineCreditsProgressTestschecks the position queued for the server: the duration for a stop in the credits, the real position otherwise. It tests a helper this PR adds, so it can't run on the base; changing the queued position back to the plain position fails it.OfflineCreditsProgressTests,SeriesPlaybackReturnTests,PlayerMarkerTimelineTests,MarkerReconciliationTestsandProgressSyncV2Tests: 60 tests, 0 failures on an iOS 27.2 simulator (Xcode 27.2). tvOS and macOS were compiled through the build service.PlayerViewModelwrites toDownloadManager.sharedwith no seam to observe it.Validation tasks: none
Evidence: https://evidence.siloserver.org/r/silo-apple/watched-at-credits/
Risks
>), so an item queued at its full duration doesn't count as watched. It stays in progress with its resume point at the end. An offline natural end behaves the same way today.credits_placement.gois retuned, this file has to follow.Follow-ups
Council review
Rounds: 1, reviewed 3de2218
Visual review: 1 round, captures from the tested build
Fixed: a test for the position offline progress queues (Opus, Gemini), in d6518a6, which changes no behavior. Answered: older servers (Opus, Sol), the 100% threshold (Sol), and a file spanning two episodes, which already advances one row past 90% today (Sol).
Plan round: Sol, Opus and Gemini. Adopted: the queued position moves to the end only when the credits were reached, so the server's own threshold still applies below them (Opus, Sol); the episode check reads the watch detail's type alone (Opus). Answered: the queue coalescing and 100% threshold limits above.
AI Disclosure
SiloMediaType.isEpisode, a simplify pass that changed nothing, and the council review above.🤖 Generated with Claude Code
Note
Count reaching end credits as watched in
PlayerViewModelcompletion checksPlayerViewModel.endCreditsStart, which picks the last credits marker within a tail window (450s or 40% of duration for episodes, 900s or 25% otherwise) viaPlayerMarkerTimeline.endCreditsStartPlayerViewModel.reachesWatchednow marks a sample watched when playback reaches the end-credits start, not only past the 90% threshold;cleanupuses this shared check for the series returnDownloadManager.recordOfflineProgressgains an optionalqueuedPositionargument, so offline writes can save the actual playback position locally while queuing the full duration for sync when the credits were reachedMacroscope summarized d6518a6.