Skip to content

feat(player): time the recap and credits skip pills like Skip Intro - #5243

Open
Quick104 wants to merge 13 commits into
mainfrom
feat/timed-segment-pills
Open

Quick104 wants to merge 13 commits into
mainfrom
feat/timed-segment-pills

Conversation

@Quick104

@Quick104 Quick104 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: changes #1149 C1 (see Risks)

Other clients: Apple Silo-Server/silo-apple#1264; Android Silo-Server/silo-android#1045; Roku Silo-Server/silo-roku#108. Their state-machine tests assert the tables this pull request adds to the intro-skip design, so this one lands first.

Skip Recap and Skip Credits sit on screen for the whole range with no timer, and Escape does nothing to them. With the controls hidden on a TV, a press meant to pause or show the controls has no clear meaning while one is up. Skip Intro already solves this in ask mode: a pill with a timer that one press activates and Back dismisses.

The project owner decided, after a review of the Apple TV player, that recap and credits pills follow the same ask rules on every client, and that every skip pill shows for 10 seconds instead of 5. This change does that on the web and amends the cross-client design.

Approach

Web player:

  • INTRO_PROMPT_SECONDS is 10. It times the intro pill, the always mode's undo pill and now the recap, credits and preview pills.
  • A second useIntroSkipPrompt drives the current recap, credits or preview range in ask mode, whatever the intro mode is. Enter or Space with nothing focused skips while the timer runs. Escape hides the pill and resolves the range. After the timer the pill returns without a timer while the controls show, as the intro pill already does.
  • One pill shows at a time: a range that starts under an intro pill waits and gets its full timer when the intro pill goes. While the Next Up screen covers the player the pill is held as paused.
  • Focus left on the seek slider after a pill press no longer blocks the next pill once the controls have faded: hidden focus counts as no focus, so the pill takes focus and answers Space. A pill decides whether to take focus once, as it appears, and does not take it later in its timer.
  • In a Watch Party the pill shows only to members who may seek. Until now a member who could not seek saw it and got the "only the host can seek" notice.
  • A buffering pill now waits only while a skip pill is on screen. Before, it waited for the whole of any marker range.

Design (docs/design/2026-08-16-intro-skip-mode.md): the constant, a "Recap and credits pills" table, a "When the controls are up" section, Menu as Back on Apple TV, Roku in the repository list, the rollout rows, and the reasons the alternatives were rejected (a two-press design, and opening Next Up at the credits marker). playback.auto_skip_credits and playback.auto_skip_recap stay booleans.

Known cost, recorded in the design: while the timer runs, a Space meant to pause skips instead.

Validation

  • useIntroSkipPrompt tests assert each row of the recap and credits table except the focus-move row, which the timer does not depend on. VideoPlayer tests drive Space and Escape at the player root for a timed credits pill, check that both keys reach the player past an untimed pill, and cover the two focus fixes; src/player passes, 846 tests.
  • pnpm run lint, format:check, build, budget:check, make verify-local-paths, verify-bidi, verify-size-ratchet: pass.
  • make test-web: one failure, AdminCollections.select.test.tsx timing out at 5 s. It fails the same way on main on the machine used and passes when run alone.
  • Browser, desktop Chromium, on a sandbox episode with intro, recap and credits markers: both pills visible for about 10 s (9,977 ms measured; 4,999 ms before); Space and Enter skip in one press; Escape hides the pill and the player stays; seeking out and back in restarts the timer; after Escape no pill returns; pause freezes the timer; a recap that starts under the intro pill waits and then gets a full timer.
  • Not checked: the two focus fixes in a browser (tests only), Escape in a real browser's fullscreen (the automation's Escape does not leave fullscreen), the buffering pill waiting behind a skip pill (a local server never raises it, and no test covers that one-line change), Watch Party, and the layout at phone width.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/player-hud-srv-1/

Risks

This deliberately changes behaviour that passed validation. #1149 C1 recorded, by a maintainer decision of 2026-11-14, a 5-second Skip Intro countdown and a Skip Credits pill with no countdown that stays up. The owner's decision of 2026-11-23 replaces both: every skip pill has a 10-second countdown, and the recap and credits pills hide when it ends and return with the controls. AC3 of #1147 ("a Skip control at the right time with a countdown") still holds, now for all three kinds. #1149 C1 needs a re-test on a build with this change.

A viewer who presses Space to pause in the first 10 seconds of a recap or the credits skips instead.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): GitHub CLI, Playwright
  • Model(s): claude-opus-5-5 (implementation), claude-fable-5-2 (review and this description)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Time the recap and credits skip pills like Skip Intro

  • Extends useIntroSkipPrompt to recap, credits, and preview segments, using ask mode with a per-range key and marker-specific label in VideoPlayer.tsx
  • Increases the prompt timer from 5 to 10 seconds, matching the Skip Intro pill
  • Intro prompts take priority; a covered segment prompt (intro pill or postroll screen) freezes its remaining timer and resumes later
  • A refused or failed automatic recap seek now shows a recap pill instead of retrying the automatic skip
  • Enter/Space can select a timed prompt while focus sits inside hidden controls; IntroSkipButton only takes focus based on focusOnMount at mount time
  • Risk: useIntroSkipPrompt countdown changed to 10s — existing callers relying on the old 5s duration are affected; tests in useIntroSkipPrompt.test.ts updated accordingly

Macroscope summarized d0129e2.

The web player's Skip Recap, Skip Credits and Skip Preview pills sat on
screen for the whole range, took no keys from the player root and were
never resolved. They now run on the intro prompt's `ask` state machine:
a 10-second timed pill that takes focus after keyboard input, answers
Enter or Space at the player root and Escape from anywhere in one press,
times out without resolving, returns untimed with the controls, freezes
across a pause, and restarts at full when the viewer seeks back in. An
Escape or an accepted skip resolves the range for the session.

The intro timer goes from 5 to 10 seconds, which also times the
`always` undo pill. One pill shows at a time: a range that begins under
an intro pill waits and starts its full timer when that pill has gone.
The pill shows only to Watch Party members who may seek, does not run
beside an automatic recap skip, and is held as if paused while the Next
Up screen covers the player. A buffering pill now waits only while a
skip pill is actually on screen, not for the whole marked range.

The intro-skip design document gains the recap and credits table that
every client asserts, the 10-second constant, the controls-up rules for
the untimed pill, and Roku in its rollout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-triage silo-triage Bot added the size/L 200–499 added + deleted lines (all files); change volume, not priority. label Nov 23, 2026
@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-24T15:55:58.267350Z d0129e2 New commits
🔒 Security Review ✅ Completed 2026-11-24T15:58:20.080062Z d0129e2 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.

@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 ❌

@silo-triage silo-triage Bot added enhancement New feature or request impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The web player now uses a shared timed prompt flow for intro, recap, credits, and preview skips. The prompt duration is 10 seconds. The player handles prompt overlap, hidden-control focus, and refused or failed automatic recap seeks.

Changes: Timed segment skip prompts

Layer / File(s) Summary
Prompt timing and labels
web/src/player/hooks/useIntroSkipPrompt.ts, web/src/player/hooks/useIntroSkipPrompt.test.ts
The prompt duration changes from 5 to 10 seconds. The hook accepts an optional skip label and freezes timing while the prompt is covered. Tests cover pause timing and credits prompt selection, dismissal, timeout, coverage, and seeking.
Segment prompt flow
web/src/player/components/VideoPlayer.tsx, web/src/player/components/VideoPlayer.test.tsx, web/src/player/components/IntroSkipButton.tsx, web/src/player/components/PlayerControls.tsx
The player offers recap, credits, and preview prompts through the shared prompt flow. A refused or failed automatic recap seek makes the recap prompt available without retrying that automatic skip. Focus and keyboard handling account for hidden controls. Tests cover prompt overlap, focus, and keyboard input.
Documented prompt rules
docs/design/2026-08-16-intro-skip-mode.md
The design document records the amended timer, recap and credits rules, platform input behavior, rollout details, and conformance-test references.

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

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant VideoPlayer
  participant useIntroSkipPrompt
  participant IntroSkipButton
  VideoPlayer->>useIntroSkipPrompt: Configure segment prompt
  VideoPlayer->>IntroSkipButton: Render active prompt with label and timer
  IntroSkipButton->>VideoPlayer: Select or dismiss prompt
  VideoPlayer->>useIntroSkipPrompt: Run prompt action
  useIntroSkipPrompt->>VideoPlayer: Return accepted seek result
Loading

Possibly related issues

Possibly related PRs

Suggested reviewers: rhainland

Merge Risk: Low · up to d0129

The timed skip prompts work as intended in most cases. A skip pill may be missing in two narrow cases: after an accepted skip when the viewer seeks back, and when the viewer returns to a recap that was already skipped automatically. Neither blocks playback, and both are worth fixing or accepting before merge.

Security architecture risk: Low · up to d0129

The change does not expand who can seek in a shared room. The remaining risk is limited to playback recovery: if an automatic recap skip is accepted but playback stays in the recap, the dedicated skip button can remain hidden. The timeline is still available.

Retained concerns

  • Low · reliability · inferred: The new automatic-to-manual handoff treats seek acceptance as completion. The base offered a marker button while playback remained in the recap. Head offers the replacement only after a false result or rejection. A room seek can report success before the scheduled command moves playback, and the local seek flow documents that a reanchor can land before its target. If playback remains in the recap after an accepted seek, the attempt guard blocks another automatic seek and the replacement pill stays suppressed. This removes the dedicated recovery action, not ordinary seeking.
Security review details

Security Blast Radius

  • observed — The changed controls can initiate a local seek or request a seek for the currently attached shared room. They do not add a call to the separate invite-copy handler.

Trust Boundaries and Controls

  • observed — The additional click and keyboard paths change how a viewer invokes a skip, not which room privileges the seek handler requires. The replacement, reconnect, room-management, and session-attachment checks remain on the path to room transport. This establishes client behavior, not independent server enforcement.

Hardening Proposals

  • proposed — Keep the one-attempt guard, but distinguish an accepted request from playback leaving the recap. If the seek settles and playback is still inside the same session, file, and range, restore the manual offer without issuing another automatic seek.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(player): time the recap and credits skip pills like Skip Intro" names the main change: recap and credits skip pills gain the same timed ask-mode behavior as Skip Intro. The changeset m…
Description check Passed The description explains the problem (recap and credits pills have no timer and Escape does nothing), the approach (timed ask-mode pills, 10-second prompt, focus and Watch Party fixes, buffering-pill …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(player): time the recap and credits skip pills like Skip Intro" names the main change: recap and credits skip pills gain the same timed ask-mode behavior as Skip Intro. The changeset matches this (useIntroSkipPrompt extended to recap/credits/preview ranges, INTRO_PROMPT_SECONDS raised to 10, VideoPlayer wiring). The title is specific and does not describe unrelated work.

Full details: Description check

Explanation

The description explains the problem (recap and credits pills have no timer and Escape does nothing), the approach (timed ask-mode pills, 10-second prompt, focus and Watch Party fixes, buffering-pill change), the design document update, validation steps, known risks, and the checklist. It matches the changeset closely.

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
Recent 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: 4b44cb84-7880-4aca-b698-4d4b7667f2e5
Commits

Reviewing files that changed from the base of the PR and between 9eb791a and d0129e2.

Files selected for processing: 5

  • docs/design/2026-08-16-intro-skip-mode.md
  • web/src/player/components/IntroSkipButton.tsx
  • web/src/player/components/PlayerControls.tsx
  • web/src/player/components/VideoPlayer.test.tsx
  • web/src/player/components/VideoPlayer.tsx

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 10 reviews per hour.

Comment on lines +2787 to +2788
intro: activeSkipMarker ?? null,
introKey: segmentKey,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kody code-review Bug high

Async segment skips can lose their resolved state

An asynchronous skip can clear the prompt before the seek resolves, causing the range to be offered again after scrubbing back. Keep activeSkipMarker available until the seek settles, or record the accepted skip independently of the prompt.

Prompt for LLM
File web/src/player/components/VideoPlayer.tsx, lines 2787-2788:

Async segment skips can lose their resolved state

An asynchronous segment skip can leave the range and clear its prompt before the seek promise resolves, so the hook never records the range as resolved. Keep the selected marker available until the seek settles, or record the accepted skip independently of whether its prompt is still active, so scrubbing back does not reoffer it.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Comment on lines +2798 to +2799
// An automatic recap skip has already answered the pill.
!(autoSkipRecap && activeSkipMarker?.kind === "recap"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kody code-review Bug medium

Automatic recap setting permanently suppresses the manual recap pill

Scrubbing back into a recap leaves no manual skip action because autoSkippedRecapKeyRef prevents a second automatic skip. Track successful automatic resolution instead of suppressing the pill whenever autoSkipRecap is enabled.

Prompt for LLM
File web/src/player/components/VideoPlayer.tsx, lines 2798-2799:

Automatic recap setting permanently suppresses the manual recap pill

The `autoSkipRecap` gate suppresses the recap pill even after the automatic skip has already been attempted. If the viewer scrubs back into the recap, the automatic effect refuses a second skip using `autoSkippedRecapKeyRef`, leaving no manual skip action for the rest of the range; track successful automatic resolution rather than disabling every recap prompt solely from the setting.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 08569966be

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +2787 to +2788
intro: activeSkipMarker ?? null,
introKey: segmentKey,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve segment resolution across asynchronous seeks

When skipping a recap, credits, or preview requires an asynchronous reanchor, reanchorAt immediately updates currentTime to the range end before the request settles. That makes activeSkipMarker and segmentKey null, so this hook clears its active prompt. When the successful seek resolves, select() rejects the completion through promptStillActive and never records the range as resolved. Scrubbing back consequently offers the pill again despite the viewer already accepting it. Preserve the pending range's resolution identity independently of the visible prompt, and cover this with an asynchronous-seek test.

Useful? React with 👍 / 👎.

Comment on lines +2798 to +2799
// An automatic recap skip has already answered the pill.
!(autoSkipRecap && activeSkipMarker?.kind === "recap"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Hide the recap pill only after an automatic skip succeeds

If an automatic recap seek is refused or its reanchor request fails, this condition still suppresses the recap pill for the entire range merely because the setting is enabled. The automatic-skip effect also records autoSkippedRecapKeyRef before calling handlePlayerSeek and does not retry a failed seek. Previously the plain recap button remained available, allowing the viewer to retry manually; now there is no skip affordance even after the underlying failure clears. Suppress the pill based on an accepted automatic skip rather than the preference alone.

Useful? React with 👍 / 👎.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Record an accepted skip before checking prompt ownership. · useIntroSkipPrompt.ts:394-395

web/src/player/hooks/useIntroSkipPrompt.ts:394-395
Minor · Functional Correctness · Quick win

Record an accepted skip before checking prompt ownership.

If a segment skip requires an asynchronous reanchor, reanchorAt first sets currentTime to the range end. This removes the active marker and clears the prompt before acceptance arrives. Line 394 then returns without resolving the range. Seeking back shows the prompt again.

After acceptance, add current.key to resolvedKeysRef before this guard. Keep the guard for clearing the active prompt, so a late completion cannot clear a newer prompt.

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: 4c2a6252-df2a-434a-9c7b-9fbeeadb9186
Commits

Reviewing files that changed from the base of the PR and between d858c3c and 0856996.

Files selected for processing: 5

  • docs/design/2026-08-16-intro-skip-mode.md
  • web/src/player/components/IntroSkipButton.tsx
  • web/src/player/components/VideoPlayer.tsx
  • web/src/player/hooks/useIntroSkipPrompt.test.ts
  • web/src/player/hooks/useIntroSkipPrompt.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

Quick104 and others added 3 commits November 24, 2026 01:30
A reanchor moves the position to the range end before its replan
answers, so the prompt was already gone when the accepted skip came
back, and the range was never marked resolved. Seeking back into it
offered the pill again. The accepted skip now resolves the range
first; only clearing the prompt still waits on it being the one on
screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Next Up screen reached the pill as a playback stop, which waits
out the pause grace window before freezing. A visit shorter than that
window counted as a rebuffer: the timer kept its original deadline and
could run out the moment the viewer came back. The prompt now takes a
`covered` flag that freezes the timer at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With auto-skip recap on, the recap pill stayed off for the whole range
on the strength of the setting alone. The automatic skip also marks
the range attempted before seeking and never retries, so a refused or
failed seek left the viewer inside the recap with no way past it. The
pill now stays off only while the automatic seek is pending or after
it took; a refusal offers it with a full timer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Nov 24, 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 ❌

Comment on lines +2833 to +2837
void Promise.resolve(handlePlayerSeek(activeRecap.end)).then(
(accepted) => {
if (!accepted) setFailedAutoRecapKey(recapKey);
},
() => setFailedAutoRecapKey(recapKey),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kody code-review Bug high

Out-of-order recap seek failures hide the current fallback pill

An older failed seek can overwrite the newer failure key, hiding the current recap's manual skip pill. Update setFailedAutoRecapKey to track failures independently or ignore stale seek completions.

Prompt for LLM
File web/src/player/components/VideoPlayer.tsx, lines 2833-2837:

Out-of-order recap seek failures hide the current fallback pill

An older recap seek can fail after a newer recap seek and overwrite its failure key, hiding the newer recap's manual skip pill even though its automatic seek also failed. Track failed keys independently or ignore stale seek completions so an older result cannot disable the current fallback.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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: 580ee0fb-5af6-4194-9157-c069fc499179
Commits

Reviewing files that changed from the base of the PR and between 0856996 and 27fe123.

Files selected for processing: 4

  • web/src/player/components/VideoPlayer.test.tsx
  • web/src/player/components/VideoPlayer.tsx
  • web/src/player/hooks/useIntroSkipPrompt.test.ts
  • web/src/player/hooks/useIntroSkipPrompt.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

When an intro overlaps a recap or credits range, the controls can bring
back an intro pill that timed out while the segment pill still has time
left. The web player disabled the segment pill while any intro pill
showed, so it was dropped and came back with a full timer, and a
segment pill that had already timed out came back timed.

The intro pill now covers the segment pill instead, as the Next Up
screen does: it is hidden with its timer frozen and returns with the
time it had left. A pill that timed out stays timed out, and one that
became due under the intro pill still starts its full timer when it
first shows. The design records the case beside the other cover
defaults.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-triage silo-triage Bot added size/XL 500–999 added + deleted lines (all files); change volume, not priority. and removed size/L 200–499 added + deleted lines (all files); change volume, not priority. labels Nov 24, 2026
@silo-kody

silo-kody Bot commented Nov 24, 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 ❌

Both sides added a describe block at the end of VideoPlayer.test.tsx; both are kept.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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: 189b7b8a-2c7b-4797-8f51-c8cc484cca82
Commits

Reviewing files that changed from the base of the PR and between d51c812 and 9eb791a.

Files selected for processing: 2

  • web/src/player/components/VideoPlayer.test.tsx
  • web/src/player/components/VideoPlayer.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

!awaitingFirstFrame &&
introPromptCanSeek &&
// An automatic recap skip answers the pill, unless the seek did not take.
!(autoSkipRecap && activeSkipMarker?.kind === "recap" && failedAutoRecapKey !== autoRecapKey),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor · Functional Correctness · Quick win

Restore the recap pill when the viewer returns after a successful automatic skip.

If the automatic skip from recap 10–40 succeeds, autoSkippedRecapKeyRef retains that key. If the viewer seeks back to 15, the automatic effect returns without seeking again. This condition also keeps the recap pill disabled because no failure was recorded.

Scope this suppression to the automatic attempt. After the viewer leaves and returns, allow a new timed offer. Keep the pill suppressed while the automatic attempt is pending.

Quick104 and others added 2 commits November 24, 2026 15:25
A late failure from an earlier recap's automatic skip replaced the
current recap's failure, hiding the Skip Recap pill the viewer was left
with. Record every failed recap instead of only the latest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The recap and credits Pause row read as if the timer resumed 1.5 s after
play. The grace decides when a stop counts as a pause, as for the intro
pill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Quick104 and others added 5 commits November 24, 2026 15:25
Space skips and Escape hides the timed pill at the player root; once the
timer has run out, both keys are the player's again, with the untimed
pill back over the controls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… hidden controls

A press on a skip pill moves focus to the seek slider, and the slider
keeps it after the controls fade. The next skip pill, such as Skip
Credits after Skip Intro, then neither took focus nor answered Enter or
Space at the player root. Focus inside the hidden controls now counts as
no focus for the pill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pill re-ran its focus effect whenever the player's verdict changed,
so a pill that came up unfocused during a scrub or under a menu took
focus later in its timer, once the viewer moved on. The decision is now
made once, when the pill mounts, and the intro pill remounts per intro.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test only showed that no skip happened, which would also pass if the
pill swallowed Space and Escape. It now checks that both keys get past
the pill's capture-phase handler.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Preview to the web

Say that root-level Select also acts on the timed pill, that the
untimed pill that returns with the controls claims neither key, and
that the shared table reaches only the web player's Skip Preview pill,
as the player spec decided.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Nov 24, 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 ❌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/XL 500–999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant