Skip to content

fix(collections): report visible members in personal collection item_count - #1582

Merged
Quick104 merged 5 commits into
mainfrom
fix/issue-1552-personal-collection-item-count
Sep 28, 2026
Merged

Quick104 merged 5 commits into
mainfrom
fix/issue-1552-personal-collection-item-count

Conversation

@Quick104

@Quick104 Quick104 commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #1552
Related issue: #192
Validation tasks: unblocks #193 S2; changes #193 S3/S6; unblocks #195

Personal collections always report item_count: 0, however many members they have. Web shows that 0 on the collection card in a library's Collections tab, and Android uses it as the total for a collection opened from that tab. The count is a stored column that only import syncs write, so adding or removing members never changes it and smart collections never get one. This change computes the count when a collection is read: the number of items the acting profile sees when it opens the collection.

Approach

The count equals the total of the collection's catalog view (source=user_collection), which is what web and Android open. That view shows the members the profile can see, or a smart collection's matches, narrowed by the collection's display filter (movies or series only, watched or unwatched). Hand-picked and imported collections without a display filter are counted together in one grouped query per list. Smart collections and collections with display filters use the same predicates as their catalog views. Distinct definitions are counted in statements of at most 32; identical smart definitions share a count within the request. The count is applied wherever a personal collection is returned: the v1 and v2 collection lists, v2 detail, the create and update responses, and the viewer's collections on a library's Collections tab (/library/{id}/user-collections and the tab's group cards). The v1 list shares the same service code, so its value is corrected too; no v1 or v2 response shape changes.

Because the count follows the profile, a collection shared with a restricted profile shows that profile only the members it can open, and a watched or unwatched display filter uses that profile's watch state. Keeping the stored column current on every add and remove would still leave smart collections without a count and couldn't reflect per-profile access, so the count is computed on read. Admin library collection counts are unchanged. Catalog queries now exclude orphan rows for viewers with disabled libraries, matching direct item access and grouped membership counts.

The v2 detail ETag includes the live count as well as the collection revision and viewer scope. If catalog contents or watch state changes the displayed count, PATCH and DELETE with the earlier tag return 412 at precondition evaluation. The stored revision still protects concurrent collection edits in the write transaction.

Validation

  • Database regressions verify that 50 identical smart definitions use one query and 40 distinct definitions use two, preserving independent filters and item limits. Counts update on the next request, and an invalid definition does not suppress valid results. A collection with a disabled-library member, an orphan, and one accessible member reports 1 on both its card and catalog page.
  • In a disposable PostgreSQL test with 100,000 synthetic movies, 500 identical smart counts fell from 14.4 seconds to about 25 milliseconds. This measures reuse of identical definitions; distinct predicates still require evaluation.
  • Focused HTTP regression tests verify stable ETags for unchanged counts, new ETags when counts change without a collection edit, rejection of stale PATCH and DELETE requests, successful fresh writes and explicit wildcard deletes, and existing concurrent-write protection. A separate HTTP/Postgres reproduction verifies smart-collection catalog additions and watched-state changes both change the ETag and reject stale writes. The generated v2 fixture updates only the detail ETag header.
  • Handler tests against Postgres: list, detail, the create response, and the library tab report the visible count for hand-picked and smart collections, follow adds and removes, and leave out members in a library the viewer can't access. With the counting disabled they fail with the reported 0.
  • A handler test compares item_count with the catalog resolver's total for hand-picked and smart collections with no display filter, a movies-only filter, and a series-only filter. It fails when the display filter is ignored.
  • Catalog tests against Postgres: the grouped member count equals what GetByIDsWithAccess returns under library allowlists, disabled libraries, advisory-age limits, and an empty library scope, and ignores missing items, manga chapters, sub-item rows, and other accounts. The smart count equals the cursor page total, including the definition's item limit.
  • go build, gofmt, go vet, make lint-changed, make test-go, make test-db-pins, and the settings-binding, playback-fixture, route-inventory, migration-ledger, scenario-catalog, offline-route, apiv2 OpenAPI/contract/fixture, and local-path checks pass. Web checks were not run; no web files changed.
  • go test with a database for catalog, handlers, apiv2, userstore, and jellycompat: TestOrphanCleanupAfterPlexTableDropPostgres, TestAdminSubtitleListPageDB, and TestCatalogTransferPersistsJobsAndSignedLink fail on fixture errors outside collections (a users.role insert, a subtitle language filter, timestamp precision). Everything else passes.
  • On an isolated test server, before the display-filter change, the issue's steps (create "Test", add three titles) now report 3 in the v2 list, v2 detail, and v1 list. Shared with a PG-limited profile, that profile sees 1 member and every surface reports 1; adding and removing members changes both profiles' counts. A personal smart collection over all 32 movies reports 32 for the admin and 9 for the PG profile, and follows a rule change. The library Collections tab cards show the same numbers. Before the change, a development server reported 0 on every surface for the same kinds of collections.

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

Risks

  • Reading a collection list or a library's Collections tab runs one grouped membership count plus bounded batches of dynamic counts. Identical smart definitions are evaluated once per request. Many distinct expensive definitions can still make a list slow; batching reduces round trips and does not make arbitrary predicates free.
  • With a watched or unwatched display filter, the count changes as the profile watches, the same way the collection's contents do.
  • A library's "My collections" group set to sort by most items now orders personal collections by their real counts. Before, every count was 0, so that sort had nothing to order by. The group is created with manual sorting, which is unchanged; this is why the PR lists Collections — Server #193 S6.
  • Imported collections now show the count the profile can see instead of the sync's matched count, so a restricted profile sees a smaller number than before. The import endpoint's own response still carries the sync's matched count.
  • The SQLite user store, retired at 1.0, keeps its current counts because its memberships aren't in Postgres.
  • Apple and Android need no change; they already read item_count, treat ETags as opaque values, and handle 412 without silently replaying an edit. Their collection tests were inspected; native builds and devices were not run. jellycompat exposes only admin collections and is unaffected.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code (Claude Agent SDK); T3 Code using the Codex provider
  • Tool(s): Claude Code, Codex, GitHub CLI, Go, Playwright (headless Chromium, for verification screenshots)
  • Model(s): claude-opus-5-5; gpt-6-astra
  • Involvement: AI-assisted
  • Adversarial review: gpt-6-astra reviewed the complete diff, catalog and editor callers, access restrictions, issue Personal collections always report item_count 0 #1552, validation cases, and prior review threads. A PostgreSQL HTTP reproduction confirmed that live counts could change under an unchanged strong ETag. The detail response and mutation guard now bind the count, with regression coverage for stale writes. Follow-up Codex and Kody findings led to bounded count batches with per-request reuse, consistent orphan exclusion, and visible test cleanup errors.

🤖 Generated with Claude Code

Note

Fix personal collection item_count to report viewer-visible members

  • Personal collection list, detail, create, and update responses now compute a live viewer-scoped item_count through handlers.visiblePersonalCollectionCounts, with the stored count kept when a live count fails
  • Direct-member counts use catalog.ItemRepository.CountVisiblePersonalCollectionMembers, which applies the same library, maturity, media-type, and item access predicates as item lookup; smart and filtered counts use catalog.QueryExecutor.Count on the collection's display filter and smart item limit
  • apiv2.personalCollectionEditorTag folds the live item_count into personal collection ETags, so a count change now invalidates validators and rejects stale If-Match PATCH/DELETE even when the stored revision is unchanged
  • Fixes catalog.buildLibraryScopeJoin so deny-only library access no longer admits orphan items with no library membership; such items now require a membership row
  • Risk: ETags for GET /api/v2/collections/{id} and personal collection edits change for existing clients whenever the live item_count differs from the stored count; check apiv2/personal_collections_lifecycle.go and the updated fixture in index.json

Macroscope summarized 70cb030.

…count

Personal collections always reported item_count 0: the stored column is
written only by import syncs, so adding or removing members never changed
it and smart collections never had a count.

Compute the count when a collection is read instead. Hand-picked and
imported collections count the membership rows the acting profile can see,
with the same access filter the items page uses; smart collections count
the viewer's matches. This covers the collection list, detail, create and
update responses, and the library Collections tab.

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

chatgpt-codex-connector Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-28T02:10:16.326551Z f8c5208 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Warning

Review limit reached

Next included review available in 12 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: e97b31cd-23bc-4d4f-84ff-78463e606066

📥 Commits

Reviewing files that changed from the base of the PR and between 1208abd and 70cb030.

📒 Files selected for processing (8)
  • internal/api/handlers/collections_item_counts.go
  • internal/api/handlers/collections_item_counts_test.go
  • internal/catalog/discovery_repo.go
  • internal/catalog/discovery_repo_test.go
  • internal/catalog/item_repo.go
  • internal/catalog/personal_collection_counts.go
  • internal/catalog/personal_collection_counts_db_test.go
  • internal/catalog/query_executor.go

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: f8c38e2e-a009-493a-a59e-d20689e59f57

📥 Commits

Reviewing files that changed from the base of the PR and between 9095b4a and 1208abd.

📒 Files selected for processing (5)
  • contracts/api/v2/fixtures/index.json
  • docs/architecture/api-contract.md
  • internal/apiv2/personal_collections_editors.go
  • internal/apiv2/personal_collections_guard_test.go
  • internal/apiv2/personal_collections_lifecycle.go

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


📝 Walkthrough

Walkthrough

Personal collection views now report counts based on items visible to the acting profile. Manual collections use visible membership rows, and live-query collections use smart-query results. Collection ETags include the live item count.

Changes

Personal collection item counts

Layer / File(s) Summary
Catalog count methods
internal/catalog/item_repo.go, internal/catalog/query_executor.go, internal/catalog/personal_collection_counts.go, internal/catalog/catalog_collection_cursor.go, internal/catalog/personal_collection_counts_db_test.go
The catalog repository counts accessible top-level collection members. CountPersonalCollection counts manual or live-query collections with display and access filters. QueryExecutor.Count returns smart-query totals. Database tests cover access filters, maturity limits, and definition limits.
Count sources and aggregation
internal/usercollections/listing.go, internal/api/handlers/collections_item_counts.go
Visible collection records now include query and display-query definitions. Handler helpers use these definitions to calculate counts for manual and smart collections.
Collection view integration
internal/api/handlers/collections_service.go, internal/api/handlers/collections_lifecycle_service.go, internal/api/handlers/library_views_service.go, internal/api/handlers/collections_item_counts_test.go
List, detail, creation, and library-view paths apply counts for the acting profile. The handler test checks restricted and unrestricted views, membership changes, display filters, and smart collection creation.
Count-aware collection ETags
internal/apiv2/personal_collections_editors.go, internal/apiv2/personal_collections_lifecycle.go, internal/apiv2/personal_collections_guard_test.go, contracts/api/v2/fixtures/index.json, docs/architecture/api-contract.md
Personal collection ETags include the live item count and collection revision. HTTP tests check response tags and stale conditional requests when the count changes. The API contract documentation describes this behavior.

Priority: ➖ Normal

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

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to 1208a

Visible collection counts and count-aware ETags have no identified issue requiring a fix before merge.

Security Architecture Review

Security architecture risk: 🟡 Moderate · up to 1208a

Counts are intended to reflect what each profile can see, and existing access checks remain in place. The main unresolved risk is that a count can change independently of a collection edit while conditional writes are still committed against the collection’s stored revision.

Retained concerns

  • Medium · reliability · inferred: A live-count change after a conditional write’s ETag check may not invalidate its storage commit: the validator includes the count, but the commit is fenced by stored collection revision alone.
Security review details

Security Blast Radius

  • inferred — The relevant exposure is to profiles permitted to read a collection, including restricted profiles sharing a collection. The supplied entrypoint changes in the guard test do not add a production route.

Trust Boundaries and Controls

  • observed — The read path checks profile access, the edit path checks creator identity, and collection validators are scoped to the request’s collection editor context. No production entrypoint bypass was established from the changed guard test.

Resilience and Maintainability Implications

  • inferred — On a count failure, a restricted profile could receive a stored aggregate rather than its visible count. The stored-count read behavior predates live recounting, so the evidence does not establish a PR-worsened disclosure; failure-path behavior for restricted profiles is still unverified.

Hardening Proposals

  • proposed — Define an explicit failure policy for profile-scoped counts, and verify that restricted-profile responses and validators do not silently revert to an inappropriate stored aggregate when counting fails.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 64.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 14 files. (2 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The changes satisfy the coding requirements in #1552. Personal manual and imported collections count visible memberships with access and display filters. Smart collections count visible query matches …
Out of Scope Changes check ✅ Passed The changes remain within #1552. Shared count logic, access predicates, query counting, collection-view integration, API coverage, and regression tests directly support visible personal-collection cou…
Title check ✅ Passed The title clearly and concisely describes the main change: reporting viewer-visible member counts in personal collections.
Description check ✅ Passed The description directly explains the problem, implementation, affected collection surfaces, ETag behavior, validation, and risks. It is clearly related to the changeset.
Full details: Docstring Coverage

Explanation

Docstring coverage is 64.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 14 files. (2 skipped: 2 unsupported.)

✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

Comment thread internal/catalog/item_repo.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d152df939f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@macroscopeapp

macroscopeapp Bot commented Sep 27, 2026

Copy link
Copy Markdown

Validation impact

Suggested Validation tasks: line:

Validation tasks: unblocks #193 S2; changes #193 S6; unblocks #195

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

Posted via Macroscope — v1 validation impact

A personal collection's display filter (movies or series only, watched or
unwatched) narrows what its catalog view shows, but item_count ignored it,
so a filtered collection reported more items than opening it listed.

Count a collection with a display filter, or a smart definition, with the
same predicates as its catalog view. Hand-picked and imported collections
without a display filter keep the grouped count, which now also leaves out
manga chapters as the catalog view does.

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

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

The original ETag finding and the follow-up count batching and disabled-library findings are addressed in 1208abdc9 and f8c5208ce. Collection detail responses and mutation guards now bind the live count into the strong ETag; storage retains its revision check for concurrent edits. The fix keeps visible counts in the catalog layer and restores the existing v2 validator contract. Dynamic counts now use bounded batches and reuse identical smart definitions within each request. Catalog queries consistently hide orphan rows for disabled-library viewers. Test cleanup failures are reported. No actionable findings remain.

Validation: the collection-count PostgreSQL tests and focused HTTP regression pass. A real HTTP/Postgres reproduction verifies catalog and watch-state changes produce new tags and reject stale writes. Existing concurrent-write/profile tests, v2 fixture/schema checks, local-path checks, and changed-package lint pass. PostgreSQL checks cover batching, independent filters/limits, freshness, invalid definitions, orphan exclusion, and nearby person/episode access paths. The 100,000-item synthetic check reduced 500 identical smart counts from 14.4 seconds to about 25 milliseconds; distinct costly predicates still require evaluation. Discovery SQL-shape assertions now follow the shared membership predicate (70cb03066); focused discovery tests pass. The full hosted CI run passes on the reviewed head. Codex and Kody completed review of the production repair without further findings; the final two-line test assertion update was reviewed locally. Kody's latest optional check failed with "Model does not support this protocol" and no code findings; its retry API was unavailable. No broad local suite, browser, or native-device verification was run for this repair.

Validated features

#193 records agent API testing on build 927 (66f6a52a), with no human acceptance yet:

Cases Surface Classification Reason
S1 Server/API No behavior change to the recorded access checks Collection ownership and sharing rules remain in place.
S3 Server/API Minor change; re-check Catalog queries now exclude orphan members for disabled-library scopes, matching direct item access. The focused regression verifies the count equals the visible page.
S5 Server/API Unaffected Administrative mutation permissions are unchanged.
S6 Server/API Major change, explained Personal collection groups sorted by most_items now use calculated counts. Re-validation is already called out in the PR.

S2 remains the bug-fix target; #195 has no recorded Web passes. The shared predicate preserves library-backed fixture results for the passed person/access cases; person discovery already required positive membership. Calendar predicates, account-policy inheritance, and impersonation identity transitions are unchanged.

AI review and repair: gpt-6-astra in T3 Code using the Codex provider; GitHub CLI and Go.

Reviewed SHA: 70cb030666453e787b185379488e939c71818c61, against main at 3838c3acdd769abdffb397457902ac1725fad001.

Mergeability: 9/10 — ready. The verified defects are fixed, focused checks and full CI pass, and no actionable review threads or required approvals remain. The optional Kody service failure and lack of browser/native verification are the remaining validation limits.

@kody-ai

kody-ai Bot commented Sep 28, 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1208abdc98

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/catalog/item_repo.go Resolved
@kody-ai

kody-ai Bot commented Sep 28, 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.

@kody-ai

kody-ai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Code Review Could Not Complete ⚠️

The review failed before suggestions could be generated.

Reason: Unexpected error while running the code review (openai_compatible).

openai_compatible · muse-spark-1.3-contributor · HTTP 400 · generalist

Provider said: Model does not support this protocol.

After fixing the issue, comment @kody review on this PR to re-run the review.

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.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

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

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.

​

@Quick104
Quick104 merged commit ce286f5 into main Sep 28, 2026
9 of 10 checks passed
@Quick104
Quick104 deleted the fix/issue-1552-personal-collection-item-count branch September 28, 2026 03:00
@zZebrahz zZebrahz mentioned this pull request Sep 29, 2026
17 tasks
bulderi added a commit to bulderi/silo-server that referenced this pull request Sep 30, 2026
Personal BoxSets reported no ChildCount: the adapter dropped item_count,
and the stored column is written only by import syncs anyway. Count the
items each collection shows the viewer with the function the native
collection routes use since Silo-Server#1582, now shared from the catalog package.

Play all and Shuffle (Silo-Server#1594) returned a personal collection's direct
members, so series stayed folders and episode-only requests came back
empty. Expand the members, in the collection's listed order, with the
leaf logic library collections use.

Document personal BoxSets in the Jellyfin compatibility reference.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Personal collections always report item_count 0

1 participant