Skip to content

fix(tv): show mixed libraries in movie and series tabs - #441

Merged
Quick104 merged 8 commits into
Silo-Server:mainfrom
RXWatcher:fix/tv-mixed-library-scope
Oct 7, 2026
Merged

Quick104 merged 8 commits into
Silo-Server:mainfrom
RXWatcher:fix/tv-mixed-library-scope

Conversation

@RXWatcher

@RXWatcher RXWatcher commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: changes #6 C1 (mixed-library collection routes on TV now carry the selected Movies/Series scope); its cases are all Not run, so no recorded result changes.

Android TV excludes mixed libraries from its Movies and Series tabs. A viewer with only a mixed library cannot use either tab to browse the corresponding titles.

Approach

Include mixed libraries in both video tabs and carry the selected movie/series scope through Recommended, Browse and collection routes. Scope state and requests stay separate. Recommendation refills use bounded paging and concurrency, retain matching items after a partial failure, and expose Retry.

Validation

On head e0762c74, rebased on main:

  • ./gradlew testDebugUnitTest: 5,552 tests, zero failures, errors or skips (812 phone, 1,226 TV, 1,818 shared, 1,694 Android shared, 2 libass bridge).
  • :androidApp:assembleDebug and :androidTvApp:assembleDebug: passed.
  • lintDebug for shared, phone and TV, plus phone and TV lintVitalRelease: no new issues beyond the baseline.
  • New regressions: a superseded Recommended load stops paging after Retry (fails without the fix), a personal collection shuffles in the user_collection scope, Movies- or Series-scoped library and collection views offer no shuffle, and customized or profile-added shelves never refill from the stored definition.
  • Native checks on 6ac81ded (Evidence below) confirm separate movie and series shelves, retained items during an injected catalog failure, and recovery after Retry.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-android/pr-441/

Before: 9518b262305a3137949b90720ce263617d1e46a3, before the mixed-library changes. After: 6ac81ded623d419f738f9f5823893c06c4ce6c5f. The later rebase onto main f3f3149e (shuffle scope, Retry cancellation) e1b216e5 and e0762c74 (no shuffle in scoped views; customized shelves keep their resolved items) do not change these screens. Both use the same native Android TV emulator, Reviewer profile and synthetic API dataset: one Mixed Library containing Movie One, Movie Two, Series One and Series Two.

The fixture serves API responses to unmodified native builds. This verifies client presentation and scoping; production backend and playback behavior are outside this capture.

Before, the mixed-only profile has no Movies or Series tab. That missing navigation prevents a before capture of either destination; the same Home view shows the difference in available tabs. After, both tabs are available and their shelves contain only matching titles.

Surface Before After
Home navigation android441-before-home android441-after-home

Movies — only Movie One and Movie Two:

android441-after-movies-recommended

Series — only Series One and Series Two:

android441-after-series-recommended

Partial-load warning: with the fixture catalog returning HTTP 503 during a fresh Series load, both inline series remain visible and Retry appears. The warning reads “Some shelves could not be fully loaded for this media type. Retry or open Browse.” Restoring the fixture and activating Retry clears the warning without losing the titles.

android441-after-partial-warning

After Retry:

Series after Retry

Risks

Refill work is bounded, so shelves can still be incomplete. Customized or profile-added shelves are not refilled, because the catalog section source reads only the stored definition; they show their profile-resolved items and report incomplete when short. Shuffle is hidden in Movies/Series-scoped views until a shuffle request can carry the scope. The warning and Retry make that state visible. Client evidence uses a synthetic server fixture.

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.

AI Disclosure

  • Harness: Codex harness in T3 Code (original implementation and this follow-up).
  • Tool(s): Codex, GitHub CLI, agent-device, Android emulator; earlier implementation used AI assistance.
  • Model(s): gpt-6-astra (original implementation) and gpt-6.1-sol (this follow-up). Later commits credit Claude Opus 5.5; its exact API identifier is not present in the available metadata.
  • Involvement: AI-assisted; human review pending.
  • Adversarial review: The same coding agent checked the native before/after views, scoped title lists and injected partial-load behavior. No independent agent reviewed this evidence follow-up.
  • Rebase and f3f3149e: Claude Code, model claude-opus-5-5[1m], rebased on main, fixed the Kody findings raised on fix(mobile): separate movies and series in mixed libraries #447 against this code, and reran the gates above. No independent agent reviewed this change.

Note

Show mixed libraries in TV Movies and Series tabs with media-scoped browse

  • Mixed libraries now match both the Movies and Series tab predicates in TvLibraryTabType, and the tab supplies a movie or series scope to library detail, browse, and collection routes
  • Scoped collection detail loads pass media type, library ID, and collection source to the catalog API; shuffle is hidden for scoped views
  • Scoped recommended shelves filter to the selected media type and refill from the catalog section endpoint (max 3 shelves concurrently), keeping partial inline content and showing a Retry panel when a shelf cannot be fully filled
  • Adds episode playback and series-context fields to BrowseItem and extends SectionApi.getLibraryCollectionItems with media type, library ID, and source
  • Behavioral Change: scoped shelf refills can mark loads incomplete with an error state instead of silently showing partial rows; see scopeTvLibrarySection in TvLibraryMediaScope.kt

Macroscope summarized e0762c7.

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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: 6dd5d921-ead2-4d89-afb6-b29af2c909ca
📥 Commits

Reviewing files that changed from the base of the PR and between 6ac81de and f3f3149.

📒 Files selected for processing (8)
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/di/AndroidTvModule.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/navigation/TvAppNavigation.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/navigation/TvRoute.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibraryCollectionDetailScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibraryDetailScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibraryDetailViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/shell/TvMainShell.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/library/TvMixedLibraryScopeTest.kt

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


📝 Walkthrough

Walkthrough

Mixed libraries now appear under Movies and Series. TV library sections can filter and refill catalog items by media scope. Collection navigation passes media scope and collection source to detail requests. Catalog items include series, episode, and playback-progress fields.

Changes

TV media scoping

Layer / File(s) Summary
Catalog query support
shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/CatalogModels.kt, shared/src/commonMain/kotlin/org/siloserver/silo/network/api/SectionApi.kt, shared/src/commonMain/kotlin/org/siloserver/silo/repository/SectionRepository.kt, shared/src/commonTest/kotlin/org/siloserver/silo/network/api/SectionApiCollectionItemsTest.kt
Catalog models add series, episode, source, and playback-progress fields. Section browsing and collection queries accept parameters for scoped requests. A test verifies collection filters in the serialized request.
Mixed-library tabs and sections
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/shell/TvLibraryTabType.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibraryMediaScope.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibraryDetailViewModel.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibraryDetailScreen.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/di/AndroidTvModule.kt, androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/shell/TvLibraryTabTypeTest.kt, androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/library/TvMixedLibraryScopeTest.kt
Mixed libraries appear in both Movies and Series tabs. Scoped shelves filter and page through catalog results. Up to three shelves load concurrently. Incomplete loads set an error, and available sections display a retry banner.
Scoped collection navigation and requests
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/shell/TvMainShell.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/navigation/TvRoute.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/navigation/TvAppNavigation.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibraryCollectionDetailScreen.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibraryCollectionDetailViewModel.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/di/AndroidTvModule.kt
Collection navigation carries source and media scope into the detail screen and ViewModel. Collection requests pass source and media type, and include the library ID when media scope is set. Shuffle scope follows the collection source.

Priority: ➖ Normal

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

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant TvLibraryTabType
  participant TvMainShell
  participant TvLibraryDetailViewModel
  participant SectionRepository
  participant SectionApi
  TvLibraryTabType->>TvMainShell: provide movie or series media scope
  TvMainShell->>TvLibraryDetailViewModel: pass media scope
  TvLibraryDetailViewModel->>SectionRepository: request section catalog pages
  SectionRepository->>SectionApi: forward library, section, and continuation
  SectionApi-->>SectionRepository: return catalog page result
Loading

Suggested reviewers: quick104

Merge Risk: ⚪ Minimal · up to f3f31

Mixed TV libraries now show scoped content under Movies and Series, and collection routes carry the selected scope and source. No outstanding defect was established for the reviewed changes, so the change appears ready to merge after normal checks.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 28ea8

The inspected changes preserve library scope and prevent superseded loads from replacing current results. No introduced authorization bypass was established. Server-side ownership checks and media-filtering behavior remain unverified, so the assessment is qualified rather than minimal.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The added reads target selected library sections and collections on the existing catalog service. Effective cross-library or cross-account exposure cannot be determined from client selectors alone; resource ownership must be enforced by the service.

Security Findings and Attack Paths

  • inferred — Normal shell navigation chooses user_collection or library_collection from collection classification. Although internal route consumption forwards an unrestricted source string, an attacker-controlled path that sets that argument and bypasses ownership enforcement was not established. This remains a boundary uncertainty, not a verified PR-introduced attack path.

Trust Boundaries and Controls

  • inferred — Media filtering is a presentation constraint, not an authorization boundary. The shared client supports identity-owned reads, but server-side validation must bind source, collection, library, and viewer ownership for both item and filter requests. That producer-side enforcement was not available in the inspected evidence.

Resilience and Maintainability Implications

  • observed — Browse generation checks reject superseded responses before cursor and item publication. The existing catalog client additionally rejects continuations whose query key changed and pagination that repeats a previously seen cursor, containing stale-query and cursor-loop failures.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 28.57% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 42 functions across 16 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly and concisely describes the primary change: showing mixed libraries in the TV Movies and Series tabs.
Description check ✅ Passed The description directly explains the mixed-library TV changes, media scoping, navigation behavior, validation, evidence, and known risks.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

@kody-ai

kody-ai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@RXWatcher
RXWatcher marked this pull request as ready for review October 2, 2026 01:10
@silo-kody

This comment has been minimized.

@kody-ai

kody-ai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@silo-kody

This comment has been minimized.

@kody-ai

kody-ai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@silo-kody

This comment has been minimized.

@kody-ai

kody-ai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@RXWatcher
RXWatcher force-pushed the fix/tv-mixed-library-scope branch from a748b6b to 28ea863 Compare October 2, 2026 05:24
@silo-kody

silo-kody Bot commented Oct 2, 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 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 new finding verified against the current server implementation and a focused JVM reproduction of the production helper.

AI-assisted review by gpt-6.1-sol in T3 Code using the Codex provider.

val target = (section.itemLimit.takeIf { it > 0 } ?: section.items.size.coerceAtLeast(20)).coerceAtMost(100)
fun result(items: List<SectionItem>, incomplete: Boolean = false) =
ScopedTvSection(section.copy(items = items.take(target), totalCount = items.size.coerceAtMost(target)), incomplete)
if (initial.size >= target || section.totalCount <= section.items.size) return result(initial)

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.

[P2] Refill scoped shelves despite bounded inline counts

The inline total_count is not an exhaustion signal for these server shelves. In the current server, an unfiltered mixed library uses the bounded recently-added query, and fetchRecentlyAdded returns len(items) after its limit. With 20 movies inline and older series still available, this condition returns an empty Series shelf without ever calling the catalog refill. I reproduced that with the unchanged production helper: zero refill calls, zero series, and incomplete=false; changing only the reported count to 21 triggers the refill. This can make Recommended say the mixed library is empty while Browse contains series. Attempt the supported refill when the scoped slice is short instead of treating the bounded inline count as proof that nothing remains.

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.

Agreed. fetchRecentlyAdded (and several other fetchers) return len(items) after the limit, so the inline total_count can't prove a scoped shelf is exhausted. 6ac81de drops the totalCount <= items.size shortcut. A scoped shelf now skips the refill only when its filtered inline slice already fills the shelf; otherwise it refills through the section catalog, and only has_more/the continuation ends paging. boundedInlineCountStillRefillsScopedShelf reproduces your case (20 inline movies, total_count 20, series further down the source). It fails before the change and passes after.

@silo-kody

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

Copy link
Copy Markdown
Contributor

Silo's pull request guidance changed today (#490). A PR that changes what a user sees now needs before-and-after evidence in its Evidence section, and a PR with no visible change says Evidence: none, no user-visible change. This PR was opened before the rule existed, so it hasn't had a chance to meet it yet.

Missing here: Before-and-after TV screenshots of the Movies and Series tabs with a mixed library, and of the partial-load warning. The body also has no Evidence section or AI disclosure yet.

The rules are in Show visible changes, and the PR template shows the Evidence section layout. I've converted this PR to draft for now. Mark it ready for review once the Evidence section is filled in.


Generated by Claude Code

@Quick104
Quick104 marked this pull request as draft October 6, 2026 19:25
@RXWatcher
RXWatcher marked this pull request as ready for review October 6, 2026 20:17
@RXWatcher

Copy link
Copy Markdown
Contributor Author

@Quick104 ready for another look. The P2 shelf-refill finding is fixed in 6ac81ded (reply on the thread). Before/after evidence, Checklist and the Validation tasks line are now in the description.

RXWatcher and others added 6 commits October 7, 2026 21:39
The inline total_count on library shelves is not an exhaustion signal.
Recently added (and several other server shelves) report len(items)
after the item limit, so 20 inline movies with total_count 20 hid the
older series from the Series tab: no refill ran and Recommended showed
an empty shelf while Browse had series.

Refill whenever the scoped slice is short of the shelf target and let
the catalog continuation (has_more / empty page) decide exhaustion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rseded shelf loads

A mixed library opens personal collections through the library collection
screen, which always started shuffles in the library-collection scope; pick
the scope from the collection source instead. Retrying Recommended now
cancels the running load, so its refill cursor chains stop rather than
paging until the final publish check.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@RXWatcher
RXWatcher force-pushed the fix/tv-mixed-library-scope branch from 6ac81de to f3f3149 Compare October 7, 2026 21:53
@silo-kody

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

@RXWatcher

Copy link
Copy Markdown
Contributor Author

@Quick104 heads-up: I rebased this onto main and force-pushed f3f3149e. Kody's review of #447 (which stacks on this branch) found that shuffle from #476, which landed after this branch was cut, started personal collections opened from a mixed library in the library-collection scope. It also found that Retry left the superseded Recommended load paging. Both are fixed with regression tests; details are in the #447 threads. The earlier P2 fix is unchanged apart from the rebase.

@silo-kody

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

A shuffle request carries only the collection kind and id, so from a
scoped view of a mixed library's collection it would draw from both
types. Hide shuffle there until the request can carry the scope.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@RXWatcher
RXWatcher force-pushed the fix/tv-mixed-library-scope branch from 5388dcb to e1b216e Compare October 7, 2026 22:48
@silo-kody

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

…cope

Library shuffle is not offered in a Movies- or Series-scoped view, since a
shuffle request carries no media type. Customized and profile-added shelves
keep their profile-resolved inline items instead of refilling from the
stored definition, which would drop the profile's overrides.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@silo-kody

silo-kody Bot commented Oct 7, 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 f34f360 into Silo-Server:main Oct 7, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants