Repository navigation
fix(catalog): preserve library scope in detail and watch reads - #310
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (34)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughChangesThe change propagates an optional
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Bug fix · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant LibraryScreen
participant Navigation
participant PlayerOrDetailViewModel
participant CatalogRepository
participant CatalogAPI
LibraryScreen->>Navigation: select item with libraryId
Navigation->>PlayerOrDetailViewModel: provide libraryId
PlayerOrDetailViewModel->>CatalogRepository: request content with libraryId
CatalogRepository->>CatalogAPI: send library_id query parameter
CatalogAPI-->>CatalogRepository: return scoped content
CatalogRepository-->>PlayerOrDetailViewModel: return content
Suggested reviewers: Merge Risk: ⚪ Minimal · up to Library context is propagated through the scoped catalog, playback, cast, and navigation paths while unscoped paths remain unscoped. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Quick104 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This cross-platform fix threads library identity through navigation, playback, casting, and catalog/watch requests, while scoped reads bypass shared caches and warmups. The additive wire changes are well-tested, but the breadth and altered network/cache behavior affect existing phone and TV paths. You can add or adjust custom eligibility rules. Learn more. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5f8a5303b1
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@coderabbitai review |
|
Android omitted the browsing library from detail and watch reads, so
catalog.scope_versions_to_librarycould not narrow version pickers on phone or TV.Carry the selected library through detail routes, series/episode navigation, video, audiobook, reader metadata, and Android-to-Android SiloCast launches. Send
library_idon catalog item, version, episode, season-list, season-episode, and watch reads. Home, search, external links, and global recommendations remain unscoped. External links open an unscoped destination even when the same item is already open from a library.Scoped reads bypass the existing content-only offline cache and Home warmups, including the phone player's cached artwork fallback. Version pickers consume the server response without a capability probe. Android has no
getSeriesSeasoncall; season navigation uses the season-list and season-episode operations covered here.Fixes #309.
Validation on
ac6f52f1:ac6f52f1. Fresh Codex and CodeRabbit reviews found no actionable issues; Macroscope correctness passed and all review threads are resolved. Its separate auto-merge eligibility check is neutral because of the change scope.git diff --checkpassed.Limitations: scoped detail reads require a live response because the offline cache has no library key. Live-server behavior with the setting enabled and disabled, physical-device navigation, and LAN casting were not exercised. The optional cast field is backward compatible; older Android and current Apple receivers ignore it and require their own update to retain this context. No server change is needed for the Android cast protocol extension.
Note
Preserve library scope across catalog detail, watch, and navigation reads
ItemDetailViewModel,PlayerViewModel,ReaderViewModel,AudiobookPlayerViewModel, and TV equivalents) read the library id from saved state or launch args and forward it to all catalog, season, episode, prefetch, and watch-detail requests.CatalogV2ApiandWatchDetailV2Apiattachlibrary_idonly when supplied;SiloCastPlaybackRequestadds a serializable library id with legacy messages decoding as unscoped.CatalogRepositoryno longer read or write the unscoped detail, season, or episode cache, so scoped reads always hit the network; seeCatalogLibraryScopeTestfor cache isolation and warmup independence coverage.Macroscope summarized ac6f52f.
AI Disclosure
gpt-6-astrafor implementation and local review; remote review model identifiers were not provided.main, tracing phone/TV navigation, catalog and watch requests, cache ownership, external links, and cast compatibility. Fixed the missing cast context and unscoped artwork fallback found by Codex review. Explained why global recommendation navigation must remain unscoped; that review thread is now resolved. No local subagents were used.Summary by CodeRabbit