Skip to content

fix(player): count reaching the end credits as watched in the player's own checks - #1256

Merged
Quick104 merged 2 commits into
mainfrom
fix/issue-1255-credits-watched
Nov 23, 2026
Merged

Quick104 merged 2 commits into
mainfrom
fix/issue-1255-credits-watched

Conversation

@Quick104

@Quick104 Quick104 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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%:

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

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

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

Validation tasks: none

Evidence: https://evidence.siloserver.org/r/silo-apple/watched-at-credits/

Risks

  • 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

Council review

Rounds: 1, reviewed 3de2218

Member Round 1
Sol (gpt-6.2-sol, medium) 7/10
Opus (claude-opus-5-5, medium) 8/10
Gemini (gemini-4-neon, medium) 9/10

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.

🤖 Generated with Claude Code

Note

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
  • Adds tests in OfflineCreditsProgressTests.swift, PlayerMarkerTimelineTests.swift, and SeriesPlaybackReturnTests.swift
  • Behavioral Change: episodes stopped during end credits (below 90%) are now marked completed and queue the full duration; positions before the credits are unchanged

Macroscope summarized d6518a6.

…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]>
@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Nov 23, 2026
@silo-kody

silo-kody Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T01:42:21.621142Z d6518a6 New commits
🔒 Security Review ✅ Completed 2026-11-23T01:44:22.410973Z d6518a6 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

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.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix · Severity of issue fixed: Medium

Sequence Diagram(s)

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed 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 Passed 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 &gt; 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

@silo-triage silo-triage Bot added bug Something isn't working priority: P2 Limited scope, workaround exists, or polish labels Nov 23, 2026

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (gpt-6.2-sol, reviewed 3de2218)

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.

🤖 Claude Code (claude-opus-5-5)

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (claude-opus-5-5, reviewed 3de2218)

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.

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (gemini-4-neon, reviewed 3de2218)

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-triage silo-triage Bot 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
@silo-kody

silo-kody Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f0ee2a19-e02f-4169-90e2-7c1026ad28ce
Commits

Reviewing files that changed from the base of the PR and between 07c4c0d and 3de2218.

Files selected for processing: 5

  • iosApp/Tests/PlayerMarkerTimelineTests.swift
  • iosApp/Tests/SeriesPlaybackReturnTests.swift
  • iosApp/iosApp/Downloads/DownloadManager.swift
  • iosApp/iosApp/Screens/Player/PlayerMarkerTimeline.swift
  • iosApp/iosApp/Screens/Player/PlayerViewModel.swift

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.

// watched, as it does a streamed stop there. Below the credits
// the real position goes up, so the server's own threshold
// applies rather than this player's default.
queuedPosition: reachedCredits ? duration : position

@coderabbitai coderabbitai Bot Nov 23, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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.

🤖 Claude Code (claude-opus-5-5)

@Quick104

Copy link
Copy Markdown
Contributor Author

Review summary (head d6518a6)

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.

Council review of d6518a6 (one round)

Member Score
Sol (gpt-6.2-sol, medium) 6/10
Opus (claude-opus-5-5, medium) 8/10
Gemini (gemini-4-neon, medium) 9/10

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.

🤖 Claude Code (claude-opus-5-5)

@Quick104
Quick104 merged commit 82b9bfa into main Nov 23, 2026
5 checks passed
@Quick104
Quick104 deleted the fix/issue-1255-credits-watched branch November 23, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority: P2 Limited scope, workaround exists, or polish size/L 200–499 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Treat reaching the end credits as watched in the player's local checks

1 participant