Skip to content

[bug] Opening a server collection from a library tab narrows it to that library's titles #867

Open

Description

@Quick104

What happened

Not reproduced on a device yet. This comes from reading the source against server PR Silo-Server/silo-server#3711, which is about to merge.

That PR lets a server smart collection draw its titles from libraries other than the ones whose Collections tabs show it. For example, a collection can appear only on the Movies tab while its rules match titles from every library. The web app, the native API and Jellyfin clients list everything the rules match that the viewer may see.

The phone and tablet app narrows a server collection to the library it was opened from. When a collection is opened from a library's Collections tab, CollectionDetailViewModel sends that library as library_id on the /api/v2/catalog browse. The server applies it as a filter on the collection's titles. So, once #3711 is on the server:

  • A collection shown on Movies whose rules draw from every library lists only its Movies titles.
  • A collection shown on Movies whose rules match only another library's titles opens empty.

Before #3711 this filter changed nothing, because the server already limited a smart collection's rules to the libraries that show it.

Steps to reproduce

  1. On a server that includes fix(collections): let a server smart collection draw from every library silo-server#3711, sign in to the web app as an admin and create a smart collection under Admin > Libraries > Collections > New collection > Smart. Leave the rule sentence at all libraries, add a rule that matches titles in two libraries (for example Genre is Animation), and under Where it shows > Libraries pick only one of them, say Movies.
  2. In the Android phone app, open the Movies library's Collections tab and open the collection.
  3. Compare its titles with the same collection in the web app.

Expected behavior

The app lists the same titles as the web app: everything the collection's rules match that the profile may see, not only titles from the library it was opened from. A media-type filter the user picks can still narrow the list.

Device

Phone

Device model and OS version

Any phone or tablet. Found in source; not tied to a device.

App version and build

main at 58d9aac (2026-11-08).

Installed from

Built from source

Silo server version

Any build that includes Silo-Server/silo-server#3711.

Technical notes

  • androidApp/.../ui/screens/collections/CollectionDetailViewModel.kt passes libraryId = libraryId to sectionRepository.getLibraryCollectionItems for a library_collection source, both on first load and when loading more. SectionApi.getLibraryCollectionItems sends it as library_id.
  • The Android TV app (TvLibraryCollectionDetailViewModel) sends library_id only when the view is filtered to a media type, and the Apple app does the same (LibraryCollectionDetailViewModel). The phone app could follow that: omit library_id for a server collection unless a media type is selected.
  • Personal collections opened through collectionRepository.getItems are a separate path and need checking separately.
  • Validation: this reaches Collections — Android (Collections — Android #5) C1 (browse collections and open members) and C4 (updated smart-collection membership). Neither case has a recorded result yet.

AI harness

Claude Code

AI tool(s)

GitHub CLI, Git

AI model(s)

claude-opus-5-5

AI involvement

AI-assisted

Independent or adversarial review

A Codex (gpt-6.1-sol) review of Silo-Server/silo-server#3711 raised this. I confirmed it by reading the Android, Apple and server source; it has not been reproduced on a device.

Activity

  1. added
    bug
    on Nov 9, 2026
  2. added
    impact: compat
    priority: P2
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugimpact: compatpriority: P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions