Repository navigation
fix(artwork): resolve URLs against their supplying server - #296
Conversation
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.
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. |
|
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 (18)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe iOS app now resolves server-relative artwork URLs against response origins. Artwork-bearing models use property wrappers, API v2 routes use encoded catalog segments, HTTP decoding retains response URLs, and image capability probing supports retry and reset behavior. ChangesArtwork URL contracts and model decoding
Response handling and API v2 integration
Validation
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~60 minutes Change: Bug fix · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant SiloServer
participant HTTPClient
participant JSONDecoder
participant ArtworkURLResolver
participant ImageLoader
SiloServer-->>HTTPClient: return artwork response and URL
HTTPClient->>JSONDecoder: provide response origin
JSONDecoder->>ArtworkURLResolver: resolve relative artwork path
ArtworkURLResolver-->>JSONDecoder: return absolute or unchanged URL
JSONDecoder-->>ImageLoader: provide artwork URL
ImageLoader->>SiloServer: request artwork
Merge Risk: ⚪ Minimal · up to No actionable regression remains. The capability handling supports the documented legacy and current response shapes. 🚥 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 |
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This change affects artwork URL handling across many production response models and migrates the Top Shelf extension to new v2 endpoints with capability probing and image-size behavior. The broad runtime and API-contract impact warrants human review despite strong regression coverage. 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: d2805a7887
ℹ️ 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b8a2b46a9f
ℹ️ 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. 👍 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". |
Server-relative artwork could not load or prefetch because image consumers received paths without an origin. Cached content also needed to retain the server that supplied its artwork after a server switch.
Resolve explicitly marked artwork fields while decoding the response, using its captured URL. Signed paths and queries remain intact, absolute object-storage URLs remain unchanged, and views, prefetchers, and Top Shelf receive the same absolute URLs. Top Shelf now reads the v2 endpoints and season envelope. The session capability probe retains optional storage/delivery fields on every platform and accepts the current v2 capability shape as well as the older size contract. Failed probes are retried on lifecycle refreshes instead of every artwork request; Top Shelf uses the same opaque ID encoding as the main catalog client.
Closes #291. Related: Silo-Server/silo-server#935.
Validation:
The simulator checks do not establish physical Apple TV Home Screen behavior or an end-to-end run against deployed local-storage and S3 servers. Apple regression CI passed the full iOS/tvOS suites and macOS compilation on
3764b5ba. Codex and CodeRabbit completed their latest reviews without further actionable findings; all three reported defects were fixed and their threads resolved.AI disclosure: Implemented and tested with OpenAI gpt-6-astra in the Codex desktop agent harness. Repository automation also runs Codex GitHub, CodeRabbit, and Macroscope reviews.