Skip to content

feat(settings): let an administrator set the default for title art - #2365

Merged
Quick104 merged 2 commits into
mainfrom
codex/silobot-2358-14366813
Oct 20, 2026
Merged

Quick104 merged 2 commits into
mainfrom
codex/silobot-2358-14366813

Conversation

@Quick104

@Quick104 Quick104 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #2358
Related issue: N/A
Validation tasks: changes #1228 C1

An administrator can't choose whether title pages show logo art or plain text for the people on their server. Show title art only has a profile value and a per-device value, so an admin who wants plain-text titles has to ask every viewer to change their own setting, and new profiles always start with logos.

This adds a server-wide default under Admin › Settings › Appearance › Title pages. Viewers who haven't chosen inherit it, and anyone can still pick their own. Explicit choices, including false, keep winning, and the existing Apply to all devices behavior is unchanged.

Approach

  • Contract. A setting definition can declare admin_default, and ui.title_art does (manifest revision 21). The administrator's value is stored as the server setting defaults.ui.title_art, JSON text, written through the existing admin settings API. Admin writes are validated against the setting's value schema, so off is rejected and an empty value clears it.
  • Resolution. The settings resolver uses the administrator's value in place of default_value and still reports source: "default". Web, iOS, and Android already treat default as inherited and apply the effective value, so the admin's choice reaches every app without client changes, and older builds keep working. A stored value at any allowed scope still wins. A missing, invalid, or unreadable admin value falls back to the contract default (true) instead of failing the settings read.
  • Live update. Changing the default publishes one user_settings.changed event with no account, carrying only the key and scope: "default", so open web pages re-read it.
  • Web. The viewer's Title pages group says "Using the server default (on/off)" when nothing is stored. After a viewer chooses, Use server default deletes the stored value (and the profile value when Apply to all devices is on) rather than saving the default as a choice. The device settings screen labels the inherited value "Server default". The admin settings search finds the new control.
  • Docs. docs/architecture/settings-contract.md and docs/settings-api.md describe admin_default, the storage key, the source rule, and the event.

Jellyfin clients aren't affected: Silo doesn't map title art into Jellyfin display preferences, and those clients choose logos themselves.

Validation

  • Reproduced on a Silo dev deployment running main: an admin write of defaults.ui.title_art=false was accepted (and so was off), but viewers still resolved true.
  • On the same deployment rebuilt from this branch, the effective value walked through inherit (false/default), a device override (true/profile_device), another device still inheriting, deleting the override (back to false/default), and clearing the admin value (back to true/default). off returns 422.
  • A non-admin account gets 403 from both admin settings write routes, and the default is unchanged. A non-admin viewer on another account inherits the admin value, keeps an explicit profile false when the admin switches the default to true, and returns to the inherited value after deleting it.
  • In the browser: the admin turned the default off and saved, and a detail page already open in another tab switched from the logo to the text title without reloading. The viewer setting showed the inherited state, an own choice, and Use server default, at desktop and phone width, with no console errors.
  • Server branding / theming — Web admin #1228 C1: saving an accent color in the same Appearance batch as the title-art default persisted both.
  • After rebasing onto main (2026-10-18, which reorganised Admin > Settings > Appearance): the settings, contract, config and handler Go tests, make lint-changed, the settings-binding checks, and the Appearance and title-art web tests pass. The admin default, the viewer's inherited state, an own choice, and Use server default were walked again in the browser on the rebased head, at desktop and phone width. Server branding / theming — Web admin #1228 C1 was not walked again.
  • Go: make test-go passes apart from two real-FFmpeg tests in internal/mediasample, which fail the same way on main with this host's ffmpeg; go vet, make lint-changed (0 issues), and the settings, route, OpenAPI, fixture, and local-path checks pass. Web: lint, format, build, budget, and make test-web pass.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/issue-2358/

Risks

  • /api/v1 bridge. The v1 and v2 effective-values routes share one resolver, so a v1 client also sees the admin default once one is set. Nothing changes on a server that doesn't set one, and the response shape is the same.
  • One extra read. An effective-values request that includes ui.title_art, or asks for every key, does one indexed server_settings lookup. Requests for other keys don't.
  • Wiring. Only the settings-values handler's resolver reads admin defaults. That is the only server-side reader of ui.title_art today, and the contract doc says any other server path must be wired before a key it resolves declares admin_default.
  • Existing overlay defaults. Card overlay defaults keep their own defaults.card_* keys and overlay-config endpoint; this change doesn't move them.
  • Native apps. iOS and Android apply the admin default but don't yet label it or offer a reset, and they pick up a change on their next settings read rather than live. Parity issues: Show when title art follows the server default, and let viewers return to it silo-apple#745, Show when title art follows the server default, and let viewers return to it silo-android#557.

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 says there is none.

Follow-ups: Silo-Server/silo-apple#745, Silo-Server/silo-android#557. User manual: Silo-Server/siloserver.org#193, draft docs PR Silo-Server/siloserver.org#194.

AI Disclosure

  • Harness: Claude Code in T3 Code, running the /silo workflow
  • Tool(s): Claude Code subagents for code review; Playwright (scripts/capture-web) for browser captures
  • Model(s): claude-opus-5-5 (implementation and review), claude-sonnet-5-5 (review subagents)
  • Involvement: Fully AI-generated; human verification pending
  • Adversarial review: a multi-agent code review covered line-by-line, contract and clients, failure and scale, altitude, cleanup, and the v1.0 validation board. It found that the inherited-state note could show before the setting loaded, and that the docs overstated which clients receive the change event; both are fixed. Its other notes are covered under Risks. A background cross-provider review (Codex gpt-6.1-sol, reviewed 3d2d038) posted one P3 finding, left open for the author: the admin Show title art switch can show off while viewers inherit on if the server already stored an invalid defaults.ui.title_art before this change.

🤖 Generated with Claude Code

Note

Add administrator-settable server default for ui.title_art

  • Adds the admin_default flag to the settings contract and marks ui.title_art, raising the contract revision from 20 to 21 in manifest.json and settingsContract.ts
  • Server admins set the default via a defaults.<key> server setting; the resolver in resolve.go uses it in place of the contract default when no stored user choice wins, and falls back to the contract default for empty, invalid, or failed reads
  • Admin API handlers publish an accountless user-settings event when a recognized default changes, so connected users see updates
  • The Appearance admin page stages the title-art toggle through the existing SaveBar flow; the user settings page labels inherited values as "Server default" and offers a reset that clears the stored choice instead of saving it
  • Risk: NormalizeAdminSetting in admin_settings.go now rejects schema-invalid defaults.* values that previously passed through unchanged; contract validation also rejects admin_default on non-remote definitions

Macroscope summarized 7ed06e7.

@silo-kody

silo-kody Bot commented Oct 12, 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 Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 63e0bcbd-89a5-40ee-bc49-5428fce6a439
📥 Commits

Reviewing files that changed from the base of the PR and between 7ed06e7 and bec1a26.

📒 Files selected for processing: 39
  • cmd/silo/main.go
  • contracts/settings/v1/conformance.json
  • contracts/settings/v1/manifest.json
  • docs/architecture/settings-contract.md
  • docs/settings-api.md
  • internal/access/metadata_language.go
  • internal/access/metadata_language_test.go
  • internal/access/resolver.go
  • internal/access/viewer_preferences.go
  • internal/access/viewer_preferences_strict_test.go
  • internal/api/handlers/sections.go
  • internal/api/router.go
  • internal/config/admin_defaults.go
  • internal/config/admin_defaults_test.go
  • internal/jellycompat/handlers_items.go
  • internal/jellycompat/router.go
  • internal/jellycompat/server.go
  • internal/policy/viewer_resolver.go
  • internal/progresssync/service.go
  • internal/sections/fetcher.go
  • internal/sections/next_up_mode.go
  • internal/sections/next_up_mode_db_test.go
  • internal/sections/next_up_mode_test.go
  • internal/settingskeys/keys.go
  • web/src/components/homeRows/AdminNextUpDefaultsCard.test.tsx
  • web/src/components/homeRows/AdminNextUpDefaultsCard.tsx
  • web/src/components/homeRows/HomePreferencesCard.tsx
  • web/src/hooks/queries/admin/settings.ts
  • web/src/hooks/queries/admin/settingsWrite.test.ts
  • web/src/hooks/queries/settingValues.ts
  • web/src/hooks/queries/settingValuesMutations.test.tsx
  • web/src/hooks/queries/settingValuesRealtime.test.tsx
  • web/src/lib/settingsAdminDefaults.ts
  • web/src/lib/settingsConformance.json
  • web/src/lib/settingsContract.ts
  • web/src/pages/AdminHomeRows.tsx
  • web/src/pages/admin-settings/AppearanceSettings.tsx
  • web/src/pages/settings/HomeScreenSettings.page.test.tsx
  • web/src/pages/settings/HomeScreenSettings.tsx
+-----------------------------------------------------------+
| This loop is doing cardio. Your users are doing timeouts. |
+-----------------------------------------------------------+
  \
   \   (\__/)
       (•ㅅ•)
       /   づ

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f2cd0ec5-648c-44b0-9939-02c22553703e
📥 Commits

Reviewing files that changed from the base of the PR and between 448a8f7 and 7ed06e7.

📒 Files selected for processing: 31
  • cmd/settingsgen/main.go
  • cmd/settingsgen/main_test.go
  • contracts/settings/v1/conformance.json
  • contracts/settings/v1/manifest.json
  • contracts/settings/v1/manifest.schema.json
  • docs/architecture/settings-contract.md
  • docs/settings-api.md
  • internal/api/handlers/admin.go
  • internal/api/handlers/events_ws_user_settings_test.go
  • internal/api/handlers/settings_values.go
  • internal/api/handlers/settings_values_test.go
  • internal/api/handlers/user_settings_events.go
  • internal/api/router.go
  • internal/config/admin_settings.go
  • internal/config/admin_settings_test.go
  • internal/settingscontract/contract.go
  • internal/settingscontract/contract_test.go
  • internal/settingscontract/validate.go
  • internal/settingskeys/keys.go
  • internal/settingsresolve/admin_defaults_test.go
  • internal/settingsresolve/resolve.go
  • web/src/components/settings/DeviceSettingGroups.test.tsx
  • web/src/components/settings/DeviceSettingGroups.tsx
  • web/src/hooks/useTitleArt.ts
  • web/src/lib/adminSettingsSearch.ts
  • web/src/lib/settingsConformance.json
  • web/src/lib/settingsContract.ts
  • web/src/pages/admin-settings/AppearanceSettings.test.tsx
  • web/src/pages/admin-settings/AppearanceSettings.tsx
  • web/src/pages/settings/TitleArtSettingsGroup.test.tsx
  • web/src/pages/settings/TitleArtSettingsGroup.tsx

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

📝 Walkthrough

This change adds an administrator-set default for title art. The server resolves it when no profile or device value exists, and publishes an event when it changes. The web interface adds controls to set the default and to clear viewer choices so they inherit it.

Changes: Title-art default

Layer / File(s) Summary
Define the administrator-default contract
contracts/settings/v1/*, internal/settingscontract/*, internal/settingskeys/keys.go, cmd/settingsgen/*, web/src/lib/settingsContract.ts, web/src/lib/settingsConformance.json
The manifest marks ui.title_art as supporting an administrator default. Contract validation restricts this option to remote settings. Generated and web definitions include the flag, and the manifest revision advances to 21.
Resolve administrator defaults and wire settings reads
internal/settingsresolve/*, internal/api/handlers/settings_values*, internal/api/router.go, docs/architecture/settings-contract.md
Configured resolvers read and validate administrator defaults. Scoped values take precedence; otherwise the administrator value resolves with source default. The settings-values handler receives the server settings reader.
Validate and publish administrator-default changes
internal/config/admin_settings*, internal/api/handlers/admin.go, internal/api/handlers/user_settings_events.go, internal/api/handlers/events_ws_user_settings_test.go, docs/settings-api.md
Normalization validates values for opted-in defaults and treats an empty value as clearing the override. Changed defaults publish a user-settings event with default scope and no user or profile target.
Edit the server-wide title-art default
web/src/pages/admin-settings/AppearanceSettings*, web/src/lib/adminSettingsSearch.ts
The Appearance form stages the title-art default with other appearance settings. Search metadata includes title-art terms.
Show and reset inherited title-art values
web/src/hooks/useTitleArt.ts, web/src/pages/settings/TitleArtSettingsGroup*, web/src/components/settings/DeviceSettingGroups*
The viewer interface distinguishes server defaults from explicit choices. The reset control clears applicable device and profile values, and device setting labels identify administrator-defined defaults.

Priority: ⬇️ Low

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

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant AppearanceSettings
  participant AdminAPI
  participant SettingsRepository
  participant UserSettingsEventHub
  participant Viewer
  participant SettingValuesAPI
  participant SettingsResolver
  AppearanceSettings->>AdminAPI: update defaults.ui.title_art
  AdminAPI->>SettingsRepository: store changed default
  AdminAPI->>UserSettingsEventHub: publish default-scope event
  UserSettingsEventHub->>Viewer: deliver user_settings event
  Viewer->>SettingValuesAPI: request effective settings
  SettingValuesAPI->>SettingsResolver: resolve setting values
  SettingsResolver->>SettingsRepository: read administrator default
Loading

Suggested reviewers: rhainland

Merge Risk: 🟡 Moderate · up to 7ed06

Admin Devices can save title art as enabled when an administrator intended users to inherit an off default. The admin switch can also misrepresent an invalid stored default. Correct the inheritance path before merging and address or explicitly accept the display mismatch.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 52.78% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 36 functions across 25 files. (6 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Linked Issues check Passed Issue #2358 requirements are implemented. The contract marks ui.title_art with admin_default, admin writes validate the setting schema, and only admin routes accept the change. The resolver uses `…
Out of Scope Changes check Passed The changes stay within issue #2358. Contract and generator updates, resolver changes, admin API validation and events, web controls, tests, and documentation directly support the administrator defaul…
Title check Passed The title clearly and concisely describes the main change: allowing an administrator to set the default for title art.
Description check Passed The description is detailed and directly explains the administrator-controlled title-art default, inheritance behavior, API changes, UI changes, validation, risks, and follow-ups.
Full details: Linked Issues check

Explanation

Issue #2358 requirements are implemented. The contract marks ui.title_art with admin_default, admin writes validate the setting schema, and only admin routes accept the change. The resolver uses defaults.ui.title_art only when no profile or device value exists, preserves explicit false, and falls back to true for missing, invalid, or unreadable values. The web UI supports inheritance and reset without storing the inherited value. Tests cover inheritance, profile/device precedence, reset behavior, events, and admin settings. The PR also documents the API and identifies Apple and Android follow-ups and Jellyfin applicability.

Full details: Out of Scope Changes check

Explanation

The changes stay within issue #2358. Contract and generator updates, resolver changes, admin API validation and events, web controls, tests, and documentation directly support the administrator default and viewer override behavior. No unrelated feature or client implementation is included. Apple and Android work is explicitly tracked as follow-up scope.

Full details: Docstring Coverage

Explanation

Docstring coverage is 52.78% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 36 functions across 25 files. (6 skipped: 6 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@silo-triage silo-triage Bot added documentation Improvements or additions to documentation enhancement New feature or request go Pull requests that update go code javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Oct 12, 2026

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Adversarial review (gpt-6.1-sol, reviewed 3d2d038)

One P3 finding below. Source inspection and evaluation of the production UI expressions confirm the mismatch; full browser and server execution remain unverified.

AI disclosure: T3 Code through the Codex harness; model gpt-6.1-sol.

label={TITLE_ART.label}
description="Default for people who have not chosen their own. Anyone can still change it for themselves."
type="toggle"
value={form.getValue(TITLE_ART_DEFAULT_KEY) || String(TITLE_ART.defaultValue)}

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.

[P3] Show the effective default when a legacy stored value is invalid

After upgrading a server where the legacy admin API accepted {"value":"off"} for defaults.ui.title_art, this control shows off while inheriting viewers resolve on. EffectiveAdminSettings preserves the nonempty string, this expression forwards it unchanged, and SettingField checks only value === "true". Meanwhile Resolver.adminDefaults rejects off and falls back to the contract default true. Even a legacy value containing valid JSON with whitespace, true, produces the same mismatch because the resolver trims it and this control does not. I evaluated the production UI expressions for both inputs and verified the persistence and fallback paths in the source. Parse and validate the stored JSON, then pass the canonical boolean string to the toggle, falling back to TITLE_ART.defaultValue for an absent or invalid value.

Comment on lines +374 to +376
inherited := def.DefaultValue
if len(adminDefault) > 0 {
inherited = adminDefault

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

Incorrect inheritance in internal/settingsresolve/resolve.go occurs because resolveInheritedValue still uses definition.defaultValue despite administrator defaults: with defaults.ui.title_art=false and no stored choice, Admin Devices displays title art as enabled, and LevelSettings.add writes true for an override intended to preserve the inherited value. Thread validated server defaults into the shared inheritance helper and its admin consumers so displaying or adding an untouched setting matches the resolver and does not unexpectedly enable title art.

Prompt for LLM

File internal/settingsresolve/resolve.go:

Line 374 to 376:

Incorrect inheritance in `internal/settingsresolve/resolve.go` occurs because `resolveInheritedValue` still uses `definition.defaultValue` despite administrator defaults: with `defaults.ui.title_art=false` and no stored choice, Admin Devices displays title art as enabled, and `LevelSettings.add` writes `true` for an override intended to preserve the inherited value. Thread validated server defaults into the shared inheritance helper and its admin consumers so displaying or adding an untouched setting matches the resolver and does not unexpectedly enable title art.

Talk to Kody by mentioning @kody

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

​

​

An administrator can now choose whether title pages show logo art or plain
text for everyone who has not picked their own setting. Admin > Settings >
Appearance gets a "Title pages" switch, stored as defaults.ui.title_art.

The settings contract gains admin_default, which ui.title_art declares. The
resolver uses the administrator's value in place of default_value and still
reports source "default", so existing clients show the inherited value
without changes, and explicit profile and device values keep winning. Admin
writes are checked against the setting's value schema, and a change
broadcasts user_settings.changed so open web pages re-read it.

The web title art setting now says when it follows the server default and
offers "Use server default", which clears the stored values instead of
saving the default as a choice.

Closes #2358

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Quick104
Quick104 force-pushed the codex/silobot-2358-14366813 branch from 3d2d038 to 7ed06e7 Compare October 18, 2026 19:32
@silo-triage silo-triage Bot added the size/XL 500–999 added + deleted lines (all files); change volume, not priority. label Oct 18, 2026
@silo-kody

silo-kody Bot commented Oct 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 ❌

@macroscopeapp

macroscopeapp Bot commented Oct 18, 2026

Copy link
Copy Markdown

Minor validation change — silo-server #1228 C1 (Web admin; build 1144 · 74158b4a). The PR adds a “Title pages” group and toggle to the same Appearance page used by this case. Because the screen now has a new visible control, please re-check C1 after merge. Validation tasks: changes #1228 C1 accurately records the impact.

Suggested fix: No diff; re-check the case on the merged build.

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

…files (#2674)

* feat(settings): let an administrator set the Next Up defaults for profiles

ui.next_up_mode and ui.next_up_new_releases_first declare admin_default
(manifest revision 22). Profiles without their own value follow the
administrator's choice on Home, library pages and Jellyfin /Shows/NextUp;
a profile's own value still wins.

One per-node config.AdminDefaults snapshot serves every resolver: one query
for all defaults, lock-free reads while fresh, one refresh at a time (in the
background once a snapshot exists), last good value on failure with a retry
delay. Admin writes reload it before the client event and fence off older
reads; other nodes reload on the admin settings_changed event, with a 10 s
TTL as the backstop.

Admin > Home Sections gets a card for both defaults; Settings > Home Screen
names the inherited value and offers Use server default for both settings.
Web Home and library rows now refresh when either Next Up setting changes,
and a server-default change is re-read once more after the server TTL.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(settings): refresh admin defaults without reads and refetch Home's layout

The admin defaults snapshot now refreshes every half TTL in the background,
so a node that missed another node's change event converges within the TTL
even while idle; before, the web client's delayed re-read only started the
refresh and got the old snapshot back.

A Next up episodes change now refetches a mounted Home's layout before its
rows reload, so switching to a separate row shows the Next Up row instead of
only removing the episodes from Continue Watching.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(settings): poll admin defaults only on API nodes and settle flaky tests

- Start AdminDefaults.Run after the proxy/transcode return, so stream nodes
  that never resolve viewer settings stop querying server_settings every
  5 seconds.
- Wait for a refresh to publish before asserting on the snapshot in the
  AdminDefaults tests; the fake reader reports a read done before the
  snapshot is stored, which failed 3 of 900 runs under -race.
- Say the 10-second staleness bound holds while a node can read its
  settings.
- Reuse refreshForSettingChange in invalidateSettingValueQueries instead
  of a second copy of the same invalidations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. and removed size/XL 500–999 added + deleted lines (all files); change volume, not priority. labels Oct 20, 2026
@silo-kody

silo-kody Bot commented Oct 20, 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 1ca1ba5 into main Oct 20, 2026
16 of 17 checks passed
@Quick104
Quick104 deleted the codex/silobot-2358-14366813 branch October 20, 2026 01:11
reader.set(nextUpModeDefault, "", errors.New("db down"))
advance(clock, AdminDefaultsCacheTTL)
get(t, a, nextUpModeDefault)
reader.waitDone(t, 2)

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

Race condition identified in the backoff test in internal/config/admin_defaults_test.go: waitDone signals GetMany's return before AdminDefaults.read necessarily sets retryAt and clears inflight, so advancing the fake clock before read 2 finishes can prevent the next Get from starting a refresh and block waitDone(t, 3) indefinitely. Replace the first waitDone with waitPublished to ensure the refresh completes before advancing the clock.

waitPublished(t, a, reader, 2)
Prompt for LLM

File internal/config/admin_defaults_test.go:

Line 188:

Race condition identified in the backoff test in internal/config/admin_defaults_test.go: waitDone signals GetMany's return before AdminDefaults.read necessarily sets retryAt and clears inflight, so advancing the fake clock before read 2 finishes can prevent the next Get from starting a refresh and block waitDone(t, 3) indefinitely. Replace the first waitDone with waitPublished to ensure the refresh completes before advancing the clock.

Suggested Code:

waitPublished(t, a, reader, 2)

Talk to Kody by mentioning @kody

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

​

​

Quick104 added a commit that referenced this pull request Oct 20, 2026
…2754)

#2718 limited user_settings delivery to the connection's own account,
which also dropped the administrator-default event #2365 publishes with
no account. Mark that event for every viewer explicitly and let only an
envelope with the marker and no account or profile through, so personal
settings events keep their isolation.

Closes #2748

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

documentation Improvements or additions to documentation enhancement New feature or request go Pull requests that update go code javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] Add an admin-set title-art default with user overrides

1 participant