Skip to content

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

Merged
Quick104 merged 12 commits into
mainfrom
feat/player-skip-pills-timed
Dec 1, 2026
Merged

Quick104 merged 12 commits into
mainfrom
feat/player-skip-pills-timed

Conversation

@Quick104

@Quick104 Quick104 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A

Validation tasks: changes #321 C1 and #322 C1; touches #322 C3 (see Risks)

Other clients: Web and the cross-client design Silo-Server/silo-server#5243; Apple Silo-Server/silo-apple#1264; Roku Silo-Server/silo-roku#108

Skip Recap and Skip Credits stay on screen for their whole range with no timer. On Android TV the pill takes no focus and ignores Back, so with the controls hidden there is no one-press way to use it or dismiss it. Skip Intro already handles 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, that every skip pill shows for 10 seconds instead of 5, and that a pill whose timer ran out stays reachable while the controls are up. Silo-Server/silo-server#5243 amends the cross-client design with those tables; this is the Android side. Merge the design first.

Approach

  • IntroAutoSkipController (shared, drives phone and TV): the timer is 10 seconds; a new untimed Returned state shows while the controls are up after the timer ran out; observeSegmentPill runs the current recap or credits range through the ask table whatever the intro mode is.
  • Phone and TV each run a second controller for the segment pill, fed the same pause-filtered playback flow. Its timer is held while the intro pill or the Up Next screen covers it. A buffering pill waits behind a skip pill in either form.
  • TV: OK with the controls hidden skips only while the timer runs. Back dismisses the timed pill, consumes the press, and stands aside while the menu or Up Next is open; the next Back behaves as before. The untimed pill takes no focus; Up from the scrubber reaches it.
  • Phone: one banner draws the timed and untimed forms; system Back dismisses the timed pill.
  • In a Watch Party the pill shows only to members who may seek.

Two Back defects on TV came up while testing and are fixed here, because the pill's Back depends on them:

  • On the Android 16 TV image one Back press reached both the key bridge and the BackHandler, so dismissing a pill also left the player. The bridge now records the press it answered and the BackHandler ignores that press once. The buffering pill's Back had the same exposure and uses the same guard.
  • On Android 14 the BackHandler never runs for that press, so the record stayed live and swallowed a second Back within a second. The bridge clears it when a new press starts.

Review follow-ups in later commits: a timed-out pill no longer follows a paused seek into another range; on TV, choosing the pill leaves the position to the seek; the TV pill's timer is held while the Watch Party quality offer covers it; downloaded episodes start the recap and credits pill (the first commit had dropped it there); and in a foldable's tabletop posture the pill sits above the seek bar.

No new interface text.

Validation

  • IntroAutoSkipControllerTest asserts every row of the recap and credits table and the controls-up rows, and pins the 10-second default: 39 pass. ./gradlew testDebugUnitTest: 7,307 pass. The five lint tasks and both debug assembles pass.
  • Android TV emulator (Android 16), against a sandbox server with intro, recap and credits markers:
    • OK in the first seconds skips; after the timer OK shows the controls and nothing is skipped.
    • Back hides the timed pill and keeps the player, with the controls hidden and up; the next Back behaves as before; the Menu key opens the menu and does not dismiss.
    • Seeking out and back in gives a full timer; after Back no pill returns, also after a strict seek out and back in.
    • The untimed pill returns above the scrubber without focus, goes with the controls, and does not take Back; Up reaches it and Select skips.
    • Pause freezes the timer. Under Up Next the pill is hidden and its timer frozen, and it returns with the same fill after Keep Watching.
    • In a Watch Party a guest who may not seek sees no pill and their OK and Back behave as if none existed; the host sees it.
  • Google TV emulator (Android 14): Back dismisses and stays in the player, Select skips, and a quick second Back gets through.
  • Phone emulator: intro then recap, each for 10 seconds; tap skips; pause freezes; seek out and back in restarts; system Back dismisses. A foldable in tabletop mode keeps the untimed pill while its controls are pinned.
  • Foldable emulator in tabletop posture: the pill sits just above the seek bar's group while the controls show; before, it covered the right end of the seek bar. Fully open is unchanged.
  • Android TV emulator (API 36), final head: a Back held for more than a second on a timed pill hides the pill and keeps the player (before the fix it left to Home); OK after the timer shows the controls and the untimed pill and skips nothing; a recap pill hidden under a returning untimed Skip Intro pill comes back with the time it had.
  • Not checked: a pill appearing while the quick subtitle picker is open (the fix is one condition; the emulator's remote lag kept the picker from opening in time), an OK on the exact frame the timer runs out, Skip Recap and Skip Credits on a downloaded episode (the sandbox refused downloads; it rests on the code path), the Watch Party quality offer holding the pill's timer on TV (an emulator on a local server never raises that offer), the buffering pill's Back on a device (nothing can raise that pill on an emulator; it shares the guard), the supply-chain scripts (no Ruby on the machine used; no build or dependency file changed), and any physical device.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-android/player-hud-and-1/

Risks

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code, GitHub CLI
  • Model(s): claude-opus-5-5 (implementation), claude-fable-5-2 (review and this description)
  • Involvement: Fully AI-generated; the owner reviews before merge
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Add Skip Intro-style timed recap and credits skip pills on phone and TV

  • Reuses IntroAutoSkipController for recap and credits prompts via a new observeSegmentPill method in IntroAutoSkipController.kt; each PlayerViewModel (phone and TV) now gets a second controller instance for segment prompts
  • An expired ask prompt reappears as an untimed Returned pill while controls are visible and the position stays in range; selecting it seeks to the range end, and it does not claim Back
  • Segment pills pause their countdown when playback is inactive, an intro pill or Up Next is shown, or (TV) a quality offer covers them
  • TV Back handling gets a press marker and timing windows so a Back press that dismisses a pill is not applied again by the BackHandler
  • Risk: DEFAULT_COUNTDOWN_SECONDS changes from 5 to 10 in IntroAutoSkipController, so the intro skip countdown is now 10 seconds for callers using the default; see the tests in IntroAutoSkipControllerTest.kt

Macroscope summarized 0a9c648.

Quick104 and others added 2 commits November 23, 2026 20:40
Skip Recap and Skip Credits now follow the intro pill's `ask` table on
phone and TV. Each shows with a 10 s timer, takes one press to skip,
and hides when the timer runs out without resolving the range. A second
IntroAutoSkipController drives the pill through observeSegmentPill,
keyed by marker kind and fed the same pause-filtered playback flow. It
holds its timer while the intro pill or Up Next covers it.

All skip pills now stay up for 10 s instead of 5 s. A pill that timed out
comes back without a timer while the controls overlay is up: it never
takes focus, hides with the controls and skips when activated. On TV, Up
from the scrubber reaches it. Only the timed pill claims root Select and
Back, and the TV Back entries stand aside while the menu or Up Next is
open. Menu still opens the menu.

On Android 16 TV a Back press can reach both the key bridge and the
BackHandler. The bridge now records the press a pill answered so the
BackHandler does not act on it again and leave the player.

The controller tests assert the recap and credits table and the rows for
the returned pill, through the entry point both players use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The key bridge marks the Back press a skip or buffering pill answered so
the BackHandler, which on Android 16 can see the same press, does not act
on it again. Only the BackHandler cleared that mark. Where the bridge
consumes the whole press, as on Android 14, the BackHandler never runs,
so the mark stayed for its 1 s window and swallowed the next Back: a
second press soon after dismissing a pill did nothing instead of hiding
the controls or leaving the player.

The bridge now clears the mark when a new Back press starts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-triage silo-triage Bot added the size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. label 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 ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 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-24T16:58:38.467790Z 869b1a6 New commits
🔒 Security Review ✅ Completed 2026-11-24T17:02:05.733118Z 869b1a6 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 24, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

The shared skip controller now supports recap and credits prompts, including timed and returned untimed states. Android phone and TV players integrate these prompts into their ViewModels and interfaces, with platform-specific selection, dismissal, and focus behavior.

Changes: Recap and credits skip prompts

Layer / File(s) Summary
Shared prompt state and behavior
shared/src/commonMain/kotlin/org/siloserver/silo/domain/player/IntroAutoSkipController.kt, shared/src/commonTest/kotlin/org/siloserver/silo/domain/player/IntroAutoSkipControllerTest.kt, docs/playback/intro-skip.md
The controller adds recap and credits prompts, returned untimed offers, and a 10-second default countdown. Tests cover prompt timing, selection, dismissal, and controls visibility. Documentation describes the updated behavior.
Android phone player integration
androidApp/src/androidMain/kotlin/org/siloserver/silo/android/di/AndroidModule.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerOverlay.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/IntroAutoSkipBanner.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerControls.kt, androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModelLoadOwnershipIntegrationTest.kt
The phone player observes segment prompts and exposes their state and actions. The overlay displays labeled prompts, handles timed dismissal, and uses measured tabletop clearance when positioning them. Dependency injection and the integration test provide a separate controller instance.
Android TV player integration
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/di/AndroidTvModule.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvIntroAutoSkipBanner.kt
The TV player observes segment prompts and wires selection, timed Back handling, and focus changes. The banner displays recap and credits labels. Dependency injection provides a separate controller instance.

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

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant PlayerViewModel
  participant IntroAutoSkipController
  participant PlayerOverlay
  participant TvPlayerScreen
  PlayerViewModel->>IntroAutoSkipController: observe segment markers and playback state
  IntroAutoSkipController->>PlayerViewModel: emit prompt state and countdown
  PlayerViewModel->>PlayerOverlay: expose segment prompt state
  PlayerViewModel->>TvPlayerScreen: expose segment prompt state
  PlayerOverlay->>PlayerViewModel: select segment prompt
  TvPlayerScreen->>PlayerViewModel: select segment prompt
Loading

Possibly related issues

Possibly related PRs

  • Silo-Server/silo-android#694: That PR defines marker ranges and per-range recap and credits behavior used by this change’s segment prompts.

Suggested reviewers: rhainland, evulhotdog

Merge Risk: Low · up to 869b1

In a narrow timing window, switching from a streamed to a downloaded episode can leave a stale Skip Intro pill on screen and hide the recap and credits pill. Cancel the observers before the load reset to avoid this. The rest of the feature looks sound.

Security architecture risk: Minimal · up to 869b1

Recap and credits prompts change when viewers can ask to skip, not who is allowed to seek. The reviewed changes keep prompt state separate for each player and show no material increase in security or operational risk.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The inspected segment action affects the current player or its current Watch Party through the existing seek path. The new input route changes when an authorized viewer can initiate that action, not which room or player the action targets.

Trust Boundaries and Controls

  • observed — The phone uses the existing room seek authorization result both to show the offer and to guard its action. TV checks Watch Party seek permission before resolving the prompt or calling the room seek method, including when the action originates from the new root Select route.

Resilience and Maintainability Implications

  • observed — The controller clears stale prompt state when it processes a range or playback-identity change. Selection and timed dismissal clear the offer before returning, so repeating the same action does not issue a second target. The inspected player teardown paths pair observer cancellation with a reset that also cancels the countdown.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: recap and credits skip pills now get timed behavior like Skip Intro. The changeset adds a second IntroAutoSkipController for recap and credits, a 10-second timer, and …
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.
Description check Passed The description is specific and related to the changeset. It explains that recap and credits skip pills get the same timed ask behavior as Skip Intro, the 10-second timer, the untimed Returned pill, T…
Full details: Title check

Explanation

The title names the main change: recap and credits skip pills now get timed behavior like Skip Intro. The changeset adds a second IntroAutoSkipController for recap and credits, a 10-second timer, and an untimed Returned state, with TV and phone wiring. The title matches the primary change and omits the secondary Back-handling fixes, which is acceptable.

Full details: Description check

Explanation

The description is specific and related to the changeset. It explains that recap and credits skip pills get the same timed ask behavior as Skip Intro, the 10-second timer, the untimed Returned pill, TV Back and OK handling, and Watch Party visibility. It also lists validation steps and risks. It matches the changed files in the raw summary, including IntroAutoSkipController, PlayerViewModel, TvPlayerScreen, and the docs.

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 enhancement New feature or request impact: polish Annoyance, cosmetic, or nice-to-have needs-review Needs maintainer review to resolve uncertain classification, scope, or changed evidence. priority: P2 Limited scope, workaround exists, or polish labels Nov 24, 2026

@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: 9986df177c

ℹ️ 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 335 to 337
if (activeKey != null && activeKey != safeKey) {
expiredKey = null
clearExpired()
clearPrompt()

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 Clear the expired range when moving directly to another marker

If a timed-out pill is showing as Returned and the viewer pauses, then seeks directly into another marked range using a transport skip button, the old pill remains actionable. Expiry clears activeKey, so this condition does not clear the previous expiredKey/expiredRange; the new range then reaches the !playbackActive early return without replacing the state. Selecting the pill consequently seeks to the previous range's end rather than the range currently playing. Clear the expired anchor and returned state whenever the current range key changes, including when no timed prompt is active.

Useful? React with 👍 / 👎.

*/
fun onSelectSegmentPrompt(): Double? {
val target = segmentSkipController.select() ?: return null
_uiState.update { it.copy(position = target) }

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 Kody Rules high

Segment skip publishes its target before capturing the seek origin

A stale player sample can be mistaken for completed movement if the seek uses the target as its origin. Capture the actual player position and initialize the pending-seek guard with the origin and target before publishing the optimistic position.

Kody rule violation: Capture the real seek origin before optimistic playback updates

Prompt for LLM
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt, line 6741:

Segment skip publishes its target before capturing the seek origin

Capture the actual player position and initialize the pending-seek guard with that origin and the target before publishing the optimistic position. Otherwise, the subsequent seek can use the target as its origin and mistake a stale player sample for completed movement.

Kody rule violation: [Capture the real seek origin before optimistic playback updates](https://kodus.siloserver.org/settings/code-review/1247142403/kody-rules/25a012e6-177e-40ea-9507-53184deff5bc?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)

Talk to Kody by mentioning @kody

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

​

​

Comment on lines +6740 to +6742
val target = segmentSkipController.select() ?: return null
_uiState.update { it.copy(position = target) }
return target

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

Segment selection overwrites the seek origin before the seek starts

Stale position updates may be accepted because beginAndExecuteSeek records the target as the seek origin. Let seekImmediate update the position after capturing the actual origin.

Prompt for LLM
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt, lines 6740-6742:

Segment selection overwrites the seek origin before the seek starts

Pre-writing the target makes `beginAndExecuteSeek` record the target as the seek origin, so the presentation guard cannot distinguish the old playback position from the new one and may accept stale position updates. Let `seekImmediate` update the position after it captures the actual origin.

Suggested code:

return segmentSkipController.select()

Talk to Kody by mentioning @kody

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

​

​

Comment on lines +3337 to +3341
playbackActive = combine(
playbackActive,
introAutoSkipController.state,
_uiState.map { it.showNextUp },
) { active, intro, nextUp -> active && !intro.isVisible && !nextUp },

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

Segment countdown expires while hidden behind the TV HUD

A viewer can miss the entire skip opportunity while the HUD or watch-party quality offer hides the pill. Include those overlay visibility gates in the countdown's playback-active input.

Prompt for LLM
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt, lines 3337-3341:

Segment countdown expires while hidden behind the TV HUD

The segment countdown keeps running while the HUD or watch-party quality offer hides the pill, so a viewer can miss the entire skip opportunity without ever seeing it. Include the actual overlay visibility gates in the timer's playback-active input.

Talk to Kody by mentioning @kody

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

​

​

controlsVisible = false,
)
}
return launchHandling(inputs, controlsVisible) { }

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 Kody Rules high

Canceling segment observation leaves its countdown running

After cancellation, the countdown can still publish or expire the recap or credits pill. Tie it to the observation lifecycle or cancel and clear it on completion, ensuring cleanup cannot affect a replacement observation's timer.

Kody rule violation: Make lifecycle cleanup own listeners, child requests, and fading audio

Prompt for LLM
File shared/src/commonMain/kotlin/org/siloserver/silo/domain/player/IntroAutoSkipController.kt, line 226:

Canceling segment observation leaves its countdown running

The returned observation job does not own the countdown job: canceling it leaves the countdown running in the supplied scope, where it can still publish or expire the recap or credits pill. Tie the countdown to the observation lifecycle, or cancel and clear it in ownership-aware cleanup when that observation ends. Ensure cleanup cannot clear a replacement observation's timer.

Kody rule violation: [Make lifecycle cleanup own listeners, child requests, and fading audio](https://kodus.siloserver.org/settings/code-review/1247142403/kody-rules/6e497f8b-d3f2-4c41-9567-2a148b2d5184?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)

Talk to Kody by mentioning @kody

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

​

​

Comment on lines +345 to +349
if (safeKey == expiredKey) {
// Timed out, still inside: the offer is back without a timer while
// the controls are up, and hidden while they are not.
showReturnedIfControlsUp()
return

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

A returned pill retains its old seek target after a paused range change

Seeking into another range while paused leaves the old Returned pill active, so selecting it seeks to the previous range's end. When the current range key differs from expiredKey, clear the expired state and pill before the inactive-playback early return.

Prompt for LLM
File shared/src/commonMain/kotlin/org/siloserver/silo/domain/player/IntroAutoSkipController.kt, lines 345-349:

A returned pill retains its old seek target after a paused range change

A direct seek from an expired range into another range while paused leaves the old `Returned` pill active, so selecting it seeks to the previous range's end. Clear the expired state and its displayed pill when the current range key differs from `expiredKey`, before the inactive-playback early return.

Suggested code:

if (expiredKey != null && safeKey != expiredKey) {
    clearExpired()
    clearPrompt()
}
if (safeKey == expiredKey) {
    showReturnedIfControlsUp()
    return
}

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

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

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

⚠️ Outside diff range comments (1)

Minor · Start segment observation after successful downloaded playback setup. · PlayerViewModel.kt:7306

androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt:7306
Minor · Functional Correctness · Quick win

Start segment observation after successful downloaded playback setup.

On a fresh ViewModel, a successful tryLocalPlayback() returns without calling startIntroAutoSkipObserver(). The new segmentSkipController therefore stays Hidden, even when the download has recap or credits markers. The previous overlay offered these actions directly from the markers. The new overlay requires controller visibility, so downloaded playback loses both skip actions.

After local state publication succeeds, start segment observation. Use the local file identity and retain the load-owner check.

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: 26a74428-9eeb-4fe8-8ca0-f407578dd996
Commits

Reviewing files that changed from the base of the PR and between 137fca3 and 9986df1.

Files selected for processing: 12

  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/di/AndroidModule.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/IntroAutoSkipBanner.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerOverlay.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModelLoadOwnershipIntegrationTest.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/di/AndroidTvModule.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvIntroAutoSkipBanner.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt
  • docs/playback/intro-skip.md
  • shared/src/commonMain/kotlin/org/siloserver/silo/domain/player/IntroAutoSkipController.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/domain/player/IntroAutoSkipControllerTest.kt

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.

Quick104 and others added 5 commits November 24, 2026 01:23
A skip pill that timed out keeps its range so the untimed pill can still
skip it while the controls are up. Only leaving every range cleared that
anchor. Paused, a seek straight from one marked range into another
emitted no position outside both, and the pause kept the new range from
being offered, so the returned pill stayed up aimed at the old range:
Skip Credits sent playback to the end of the recap.

Any change of range now clears the timed-out anchor as it clears a timed
offer. The new range is offered with a full timer once playback runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s chosen on TV

The TV segment pill wrote its target into the position before handing it
to seekImmediate, copying the intro pill. seekImmediate arms the pending
seek guard with the current position as the origin, so the origin and the
target were the same and the guard could not tell a stale report from the
old position apart from a landed seek: the playhead could jump back to
where it was before settling.

The pill now returns its target and leaves the position to the seek, as
the recap and credits pill did before it was timed.

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

In a Watch Party the lower-quality offer hides the recap and credits
pill while it shows, but the pill's timer kept running, so the whole
offer could run out unseen. The screen now tells the view model while
the offer covers the pill, and the timer freezes, or a new offer waits,
as it does under Up Next. The pill shows with the time it had once the
offer goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The phone drew the recap and credits pill straight from the markers, so
a downloaded episode had it. The timed pill shows only what its
controller says, and the controller starts with the server playback, not
with a download, so downloads lost both pills.

A download now starts the recap and credits pill when its playback is
published. It still offers no intro pill, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The skip pills sit at a fixed height that clears the seek bar and its
action row in the normal layout. In tabletop posture the controls fill
the lower pane with a utility row under the action row and space the
rows to fit, so at that height the pill covered the right end of the
seek bar and the Quality button.

The controls now report how far the seek bar's cluster rises from their
bottom edge in tabletop posture, and while they show, the pills sit just
above it. Other layouts keep the fixed height.

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 ❌

Quick104 and others added 4 commits November 24, 2026 16:46
Where one Back press reaches both the key bridge and the BackHandler, the
bridge dismisses the timed pill on the press and the BackHandler, which
runs on release, has to recognise that press and do nothing. It did so
only within one second of the press starting, so a Back held for longer
dismissed the pill and then hid the controls or left the player.

The bridge now also records the latest event of that press and whether
it has seen the press released. The BackHandler treats the press as
answered while it is still held, up to ten seconds, and for one second
after its last event otherwise. A new press still clears the record.

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

With the controls hidden, the key bridge took OK for the timed recap or
credits pill and consumed it even when the pill had nothing to act on. A
press that landed as the timer ran out, before the screen recomposed,
did nothing at all. It now falls through to normal Select and shows the
controls, as the intro pill's OK already does.

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

The quick subtitle picker draws in the player's window, so the skip
pills still compose while it is open. A recap or credits pill that
appeared then took focus, and the picker's next OK skipped the range.
Skip pills now never take focus while the picker is open; the timer runs
as it does when a pill appears during a scrub.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every controller in the suite passed its own countdown, so nothing
failed if the default went back to 5 seconds. One case now builds the
recap and credits controller with its default timer and checks the pill
hides 10 seconds after it appears.

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 ❌

// subtitle picker: it draws in this window, so the pills still
// compose while it is open, and a pill that appeared focused then
// would take the picker's OK.
introBannerMayTakeFocus = !state.isScrubbing && cleanSeekRate == 0 && !showQuickSubtitlePicker,

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

Pills appearing behind the subtitle picker never acquire focus afterward

Closing the subtitle picker with controls visible leaves a timed pill unable to receive focus, so OK cannot select it. Update introBannerMayTakeFocus so the pill can request focus when the picker closes without reclaiming it after the viewer moves focus.

Prompt for LLM
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt, line 2877:

Pills appearing behind the subtitle picker never acquire focus afterward

When a timed pill appears while the subtitle picker is open, it captures `autoFocus = false` permanently, so closing the picker with controls visible leaves the pill unable to take focus and OK cannot select it. Allow a still-timed pill to request focus when the picker closes without reclaiming focus after the viewer has deliberately moved it.

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

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: ab93c6f8-7cea-4eda-9242-b522eab8babe
Commits

Reviewing files that changed from the base of the PR and between 9986df1 and 869b1a6.

Files selected for processing: 7

  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerControls.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerOverlay.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/domain/player/IntroAutoSkipController.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/domain/player/IntroAutoSkipControllerTest.kt

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.

…sets them

While a load ran, the previous item's intro observer kept feeding its
range to the controller, so controls shown in that window could start a
new Skip Intro offer for the item being left. A downloaded episode starts
no intro observer, so nothing replaced it: the stale pill stayed up and
held the recap and credits pill back. The load now cancels both observers
before it resets the controllers.

Co-Authored-By: Claude Fable 5.2 <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 ❌

@Quick104
Quick104 merged commit bf1c795 into main Dec 1, 2026
14 of 16 checks passed
@Quick104
Quick104 deleted the feat/player-skip-pills-timed branch December 1, 2026 01:26
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 needs-review Needs maintainer review to resolve uncertain classification, scope, or changed evidence. priority: P2 Limited scope, workaround exists, or polish size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant