Skip to content

feat(settings): add a setting that turns Next Up off - #4501

Open
Rhainland wants to merge 3 commits into
Silo-Server:mainfrom
Rhainland:feat/settings-next-up-enabled
Open

Rhainland wants to merge 3 commits into
Silo-Server:mainfrom
Rhainland:feat/settings-next-up-enabled

Conversation

@Rhainland

@Rhainland Rhainland commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: Discussion #4443
Validation tasks: none

Other clients: Apple Silo-Server/silo-apple#1219; Android Silo-Server/silo-android#995; Roku Silo-Server/silo-roku#97; Web #4503

Viewers who would rather go straight back after an episode have no way to turn Next Up off. Auto-play next only stops the countdown; the Next Up screen still opens before or at the end of every episode. Discussion #4443 asked for an off switch alongside timing Next Up from the end of the file.

This adds playback.next_up_enabled, a boolean setting at manifest revision 31. When it is false, no client opens Next Up, runs a countdown or starts the next episode; the episode plays to its end and the player closes the way its Close action does. The client pull requests listed above use it.

Approach

  • New key in contracts/settings/v1/manifest.json (revision 30 → 31; main took 30 for the cellular quality defaults in feat(playback): default cellular quality to Auto up to 10 Mbps and cap Data Saver at 2 Mbps #5135): boolean, default true, scopes profile and profile_device, label "Show Next Up". playback.next_up_prompt_seconds is unchanged and still decides when Next Up opens while this is true, so a client can show both as one picker with an Off choice.
  • docs/settings-api.md gains a Next Up section that states both rules, including that the seconds count from the end of the file, never from a credits marker.
  • Regenerated bindings (internal/settingskeys/keys.go, web/src/lib/settingsContract.ts) and conformance fixtures.
  • The web device settings screen hides the key; the web Settings → Playback picker owns it.

Clients that predate the key never send or read it and keep showing Next Up, so older apps are unaffected. jellycompat is not involved: Jellyfin clients run their own Next Up.

Validation

  • Go: go build, go vet, gofmt, go mod tidy -diff clean. make test-go, make lint-changed and make lint-router-recovery pass; see Evidence.
  • Contracts: make verify-settings-bindings-all, the apiv2 checks, verify-local-paths, verify-size-ratchet, verify-migrations and the router artifact test pass.
  • Android and Apple vendor this manifest and passed their settings conformance tests at revision 30; their pull requests need the revision 31 manifest before they merge.

Evidence

No screen changes in this pull request; the client pull requests show the setting. A local server with this change, and a new profile, before the move to revision 31 (the key and its default are unchanged; only the revision number moved):

GET /api/v2/settings/contract/capabilities          (trimmed)
{"api_version": 1, "manifest_revision": 30, "supports_batched_effective": true, ...}

GET /api/v2/settings/values/effective?keys=playback.next_up_enabled&keys=playback.next_up_prompt_seconds
{"items": [
  {"key": "playback.next_up_enabled", "value": true, "source": "default", "definition_revision": 30},
  {"key": "playback.next_up_prompt_seconds", "value": 30, "source": "default", "definition_revision": 30}
], "revision": 30}

Main is now at revision 30 (#5135) and has no playback.next_up_enabled.

Risks

None identified. The key is additive; a server on this build answers revision 31, and older clients ignore the new key.

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 how I checked a change nobody sees.

AI Disclosure

  • Harness: Claude Code, running in T3 Code
  • Tool(s): Claude Code, GitHub CLI, Codex CLI (review only)
  • Model(s): claude-opus-5-5; reviewers gpt-6.2-sol, gpt-6.2-astra, claude-fable-5-2
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: four independent reviews (gpt-6.2-sol, gpt-6.2-astra, claude-opus-5-5, claude-fable-5-2) of the branch diff for correctness, repository standards and the discussion's request; the real findings were fixed before opening

Note

Add "Next Up enabled" remote boolean setting at revision 31

  • Adds a nextup.enabled remote boolean setting in manifest.json and the web contract (settingsContract.ts), with profile and profile-device scopes and a default of true.
  • Documents the setting in settings-api.md, including resolution order, prompt timing, and effects of disabling Next Up.
  • Bumps settings revision from 30 to 31 in the key registry (keys.go) and both conformance fixtures.
  • Behavioral Change: settings revision is now 31; clients pinned to revision 30 see the setting as unknown, and the web player hides the key until it applies it (deviceSettingGroups.ts).

Macroscope summarized e812b87.

Viewers who would rather go back to the series page at the end of an
episode cannot turn the Next Up card off: Auto-play Next only stops the
countdown, and the card still opens.

Add playback.next_up_enabled at manifest revision 30, a boolean stored per
profile with a per-device override and default true. False means no card,
no countdown and no automatic next episode; the episode plays out and the
player closes as its Close action does. next_up_prompt_seconds keeps deciding when
the card opens while it is on, and the settings docs now state that it
counts from the end of the file, not from a credits marker. Clients that
predate the key keep showing Next Up.

The web device settings screen hides the key until the web player applies
it.
@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Nov 18, 2026
@silo-kody

silo-kody Bot commented Nov 18, 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 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The settings contract adds playback.next_up_enabled at revision 31 with profile and profile-device scopes and a default of `true. The change registers the key on the server, filters it from web device-setting groups, and updates conformance fixtures and API documentation.

Changes: Next Up setting

Layer / File(s) Summary
Define the Next Up setting
contracts/settings/v1/manifest.json, web/src/lib/settingsContract.ts, internal/settingskeys/keys.go, web/src/lib/deviceSettingGroups.ts
The manifest, web contract, and server keys define playback.next_up_enabled and advance the settings revision to 31. The web client filters the key from device-setting groups.
Update contract validation and documentation
contracts/settings/v1/conformance.json, web/src/lib/settingsConformance.json, docs/settings-api.md
The conformance fixtures verify that the setting defaults to true. The documentation describes the Next Up preferences and client behavior.

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

Change: Feature

Possibly related PRs

Suggested reviewers: quick104

Merge Risk: Minimal · up to e812b

This adds an opt-out setting for Next Up, defaulting to on. Nothing changes for current users until clients adopt the key, so merge risk is minimal. Client repositories must pick up the revision 31 manifest before they release.

Security architecture risk: Minimal · up to e812b

The new preference preserves today’s playback behavior by default and uses the same access rules as existing profile settings. The reviewed change does not introduce a new permission or change how existing preferences are stored.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The added authority is to read and change one playback preference through the existing settings API. A profile-level value can affect all supporting clients on that profile; a device-level value is narrower. The contract grants no account-wide scope.

Trust Boundaries and Controls

  • observed — The inspected API handlers require authentication claims and use the claimed user ID to select the settings store. The shared settings handler checks household authority for an alternate profile and registry membership for an explicitly targeted device. The web hidden-key filter controls display, not authorization.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: adding a setting that turns Next Up off. The changeset adds the boolean playback.next_up_enabled, which matches this. The title is concise, specific, and follows conve…
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 states that this pull request adds the boolean setting playback.next_up_enabled at manifest revision 31. It explains the problem (viewers cannot turn Next Up off), the approach (manife…
Full details: Title check

Explanation

The title names the main change: adding a setting that turns Next Up off. The changeset adds the boolean playback.next_up_enabled, which matches this. The title is concise, specific, and follows conventional commit style.

Full details: Description check

Explanation

The description states that this pull request adds the boolean setting playback.next_up_enabled at manifest revision 31. It explains the problem (viewers cannot turn Next Up off), the approach (manifest, docs, regenerated bindings, conformance fixtures, and hiding the key in web device settings), validation steps, and risks. This matches the changeset described in the raw summary, so the description is related to the changes.

Finishing Touches

Generate unit tests (beta)

  • 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: 67873bdb-4614-4e07-9467-755062482de5
Commits

Reviewing files that changed from the base of the PR and between 6c1ca22 and e812b87.

Files selected for processing: 7

  • contracts/settings/v1/conformance.json
  • contracts/settings/v1/manifest.json
  • docs/settings-api.md
  • internal/settingskeys/keys.go
  • web/src/lib/deviceSettingGroups.ts
  • web/src/lib/settingsConformance.json
  • web/src/lib/settingsContract.ts
Files skipped from review as they are similar to previous changes: 1

  • contracts/settings/v1/conformance.json

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

Comment on lines +809 to +815
"playback.next_up_enabled": {
key: "playback.next_up_enabled",
type: "boolean",
nullable: false,
persistence: "remote",
introducedIn: 30,
scopes: ["profile", "profile_device"],

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

Web playback ignores the profile-wide Next Up off setting

A profile-level false set by another client is ignored, so the web player can still display Next Up and auto-play. Read the effective playback.next_up_enabled value and suppress both the card and automatic advancement when it is false.

Prompt for LLM
File web/src/lib/settingsContract.ts, lines 809-815:

Web playback ignores the profile-wide Next Up off setting

A profile-level `false` set by another client is ignored by the web player, which still displays Next Up and can auto-play despite the new setting's contract. Read the effective `playback.next_up_enabled` value in the player and suppress both the card and automatic advancement when it is false.

Talk to Kody by mentioning @kody

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

​

​

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.

Not a bug in this PR. This PR adds the setting to the contract and keeps it off the web device settings screen (deviceSettingGroups HIDDEN_KEYS). The web player and settings picker apply it in #4503, which stacks on this one.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for the clarification. The suggestion is out of scope for PR #4501: this PR adds the contract key and hides it from device settings, while the stacked PR #4503 implements the web player and settings picker behavior.

I withdraw the finding for this PR.

@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: 8022b0d5-ea02-4be3-b499-eccaf4c9414e
Commits

Reviewing files that changed from the base of the PR and between e8de111 and fd61354.

Files selected for processing: 8

  • contracts/settings/v1/conformance.json
  • contracts/settings/v1/manifest.json
  • docs/settings-api.md
  • internal/settingscontract/contract_test.go
  • internal/settingskeys/keys.go
  • web/src/lib/deviceSettingGroups.ts
  • web/src/lib/settingsConformance.json
  • web/src/lib/settingsContract.ts

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

Comment thread docs/settings-api.md Resolved

@Quick104 Quick104 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.

One cleanup finding, inline. The contract change, the generated bindings, and the conformance fixtures agree with each other, and older clients ignore the new key.

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

@Quick104

Quick104 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Review summary

Reviewed head: e812b87

The PR adds playback.next_up_enabled (boolean, default true, profile and profile-device scopes). Main took manifest revision 30 for the cellular quality defaults in #5135, so the key now lands at revision 31. The manifest, the Go and TypeScript bindings, both conformance fixtures and the new section in docs/settings-api.md agree with each other. A client that predates the key never reads it and keeps showing Next Up.

Addressed

  • The contract test row for false repeated what the existing playback.auto_play_next boolean rows already check. Removed in 6c1ca22.
  • The branch conflicted with main on the manifest revision and on the web device settings hidden list. e812b87 merges main, moves the key to revision 31 (introduced_in, both conformance fixtures, the docs line), regenerates the bindings, and keeps both hidden keys (playback.auto_play_next_preview from main and playback.next_up_enabled). make verify-settings-bindings-all, go test ./internal/settingscontract/... ./internal/settingsresolve/..., the web settings conformance tests, the web typecheck and make lint-changed pass. The PR body now says revision 31.

Other feedback

  • Kody (web player ignores the key) and CodeRabbit (docs should note the web exception) both withdrew after the author's replies. I agree: this PR keeps the key off the web device settings screen, and the web player applies it in feat(web): let Show Next Up be turned off #4503.

Left for the maintainers

Validated features: none affected. The default is true, and no client reads the key until its own pull request lands. The Series validation tasks cover Next Up on each client, so the client pull requests are the ones to check against them.

Validation: CI passed on e812b87 (Go DB pins failed once in TestBeforeMigrateBackupOnAnOldSchemaDB, a backup restore test this PR doesn't touch, and passed on rerun). The evidence page shows the key resolving to its default through /api/v2/settings/values/effective, captured before the move, so it reports revision 30. The revision 31 head was checked with the contract and resolver tests above, not on a live server. No test in this PR exercises the change; the contract checks catch binding drift.

User manual: Silo-Server/siloserver.org#409 covers the Off choice and the timing change.

Other clients: Apple Silo-Server/silo-apple#1219, Android Silo-Server/silo-android#995, Roku Silo-Server/silo-roku#97 and web #4503 are linked. jellycompat is unaffected.

Fit: 8/10 · Readiness: 8/10 — conditional

  • Fit: Discussion Next Up "end" detection should be based on file end and not the credits marker #4443 asked for a way to turn Next Up off, and whether you want Next Up depends on the viewer, so a per-profile switch is a reasonable answer. Next Up stays on by default, and clients can fold the switch into the existing timing picker as an Off choice. It still adds one setting to a contract that locks at 1.0, which is the reason it isn't higher.
  • Readiness: the change is additive and the generated files match the manifest. It's lower than before because the revision 31 head hasn't been shown on a live server, and the three client pull requests need re-vendoring to revision 31 before they can merge.

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

Main took manifest revision 30 for the cellular quality defaults (Silo-Server#5135),
so the new key is introduced at revision 31. Bindings and conformance
fixtures are regenerated, and both HIDDEN_KEYS entries are kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

Quick104 added a commit to Rhainland/silo-apple that referenced this pull request Nov 24, 2026
Server revision 30 went to the cellular quality default
(Silo-Server/silo-server#5135), and Silo-Server/silo-server#4501 now adds
playback.next_up_enabled in revision 31. Re-vendor the manifest, the
conformance fixture and the generated bindings from that commit, and gate
the key on 31, so a current server at revision 30 is never sent it and
keeps answering the batch it shares with the cellular pair.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: P2 Limited scope, workaround exists, or polish size/M 50–199 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants