Skip to content

fix(recommendations): show the configured poster badges on For You cards - #3078

Merged
Quick104 merged 5 commits into
Silo-Server:mainfrom
Rhainland:fix/3016-for-you-card-metadata
Nov 2, 2026
Merged

Quick104 merged 5 commits into
Silo-Server:mainfrom
Rhainland:fix/3016-for-you-card-metadata

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #3016
Related issue: N/A
Validation tasks: changes #1146 C1, C3, C4; changes Silo-Server/silo-apple#309 C1, C3, C4; changes Silo-Server/silo-apple#310 C1, C3, C4; changes Silo-Server/silo-android#319 C1, C3, C4; changes Silo-Server/silo-android#320 C1, C3, C4

Poster badges for age rating, advisory age, studio, runtime, network and series status did not appear on For You posters, even when they were turned on in Card overlays. The same title showed them in Home and library rows. The recommendation cards never carried the metadata those badges read, so the web had nothing to draw. Watch Tonight cards had the same gap.

Approach

Home and library section cards, recommendation cards and Watch Tonight cards now share one function that copies the item's catalog fields onto a card. Before this change, the recommendation and Watch Tonight builders each kept their own shorter copy of that field list. With one shared list, a field added to cards later reaches every card surface.

This is a server-only change. The web, Apple and Android clients already read these fields from /api/v2 cards, so recommendation rows now show the same badges as Home rows with no client change. Jellyfin-compat recommendations build items through a separate path and are not affected.

The frozen /api/v1 recommendation and Watch Tonight routes clear the added fields before they respond, so their responses stay as they were.

Validation

  • Ran the focused Go tests for internal/api/..., internal/apiv2/... and internal/recommendations/.... All pass, including a new test that checks the badge fields on For You and Watch Tonight cards. That test fails on main.
  • Ran go build ./..., gofmt, go vet, make lint-changed, make lint-router-recovery, verify-apiv2-openapi, verify-apiv2-contract, verify-apiv2-fixtures, verify-local-paths, verify-size-ratchet, verify-bidi and verify-v1-route-freeze. All pass. I did not run the web half of the gate, because no web files changed.
  • Checked on a local build with synthetic movies whose ratings, studios and runtimes came from NFO files. Before the fix, /api/v2/recommendations/discover returned these cards without the badge fields and For You posters showed only the resolution and audio badges. After the fix, the cards carry the fields, For You posters show the configured badges at desktop and phone widths, and /api/v2/home/sections returns the same output as before.
before  GET /api/v2/recommendations/discover  {"title": "Amber Harbor", "content_rating": null, "advisory_age": null, "studios": null, "runtime": null}
before  GET /api/v2/home/sections             {"title": "Amber Harbor", "content_rating": "PG-13", "advisory_age": 13, "studios": ["Northlight Pictures"], "runtime": 97}
after   GET /api/v2/recommendations/discover  {"title": "Amber Harbor", "content_rating": "PG-13", "advisory_age": 13, "studios": ["Northlight Pictures"], "runtime": 97}
  • Review follow-up: merged current main into the branch. The recommendations.go and watch_tonight.go conflicts resolve to the shared mapper, which now also carries the release and last-air dates main added to cards. A separate commit corrects two stale comments. The focused internal/api/handlers, internal/apiv2 and internal/recommendations tests, make lint-changed, and the v2 OpenAPI, contract and fixture checks pass on the merged branch.

  • Review follow-up: a7cdc39e9 keeps the v1 responses unchanged, as the maintainers decided. A throwaway handler test, not committed, produced identical JSON from the four v1 routes (/recommendations/discover, /recommendations/section/..., /recommendations/watch-tonight and /recommendations/watch-tonight/cards) on merge base 81ae2ce1c and on this branch. The card fields the v2 routes read did not change. The same focused tests and checks pass.

  • The badge regression test now calls the production WatchTonight method used by v2 and checks both movie and series cards. It fails when runtime is temporarily dropped inside that path; the mutation was restored and the focused tests pass.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-3078/

Surface and build: web For You page, desktop (1440 px) and phone (390 px), local build of this branch on synthetic media.

Risks

/api/v1 responses do not change. The v1 recommendation and Watch Tonight handlers clear the fields the shared mapper adds, and v1 Watch Tonight keywords stays null. That reset goes away when /api/v1 is retired. v2 recommendation and Watch Tonight responses are slightly larger because each card carries a few more short fields.

This overlaps with open #1982, which adds date fields in the card mapping that this change moves into the shared function. Whichever merges second needs a small rebase.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (via T3 Code); Codex CLI for code review
  • Tool(s): Claude Code, Codex CLI, GitHub CLI, headless Chromium (Playwright)
  • Model(s): claude-opus-5-5; gpt-6.1-sol (code review); gpt-6-astra (Codex in T3 Code, Watch Tonight test follow-up)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: two independent reviews of the full diff, one by claude-opus-5-5 and one by gpt-6.1-sol, each covering correctness, repository standards and the issue. Neither found a correctness or spec problem. Both pointed out that v1 recommendation and Watch Tonight cards change. That change only adds fields that v1 Home cards already send, and it is now listed under Risks; I first kept it rather than writing extra code to hide the fields on v1. The maintainers then chose to keep v1 unchanged, and review follow-up commit a7cdc39e9 (Claude Code in T3 Code, claude-opus-5-5, with a gpt-6.1-sol plan review) clears these fields in the v1 handlers. One reviewer also suggested moving the new test to another file. I kept it next to the existing Discover test and the stubs it uses.

Note

Show configured poster badges on For You recommendation cards

  • Extracts a shared sectionItemFromMediaItem mapper in sections.go and reuses it in RecommendationsHandler.buildSectionItems and buildSectionItem, so cards built from media items carry catalog fields like runtime, studios, networks, content rating, and advisory metadata.
  • Adds v1RecommendationCard and v1WatchTonightCard conversions in recommendations.go. Discover, Section, Watch Tonight, and Watch Tonight Cards handlers now clear runtime, studios, networks, content rating, show status, and (for Watch Tonight) keywords before encoding responses.
  • Adds a test in recommendations_upcoming_test.go verifying Discover and Watch Tonight cards carry the movie's rating, advisory, runtime, and studio, and the series' rating, show status, and network.
  • Behavioral Change: API responses for these endpoints now include badge metadata fields previously zeroed; the swipe card's separate runtime field still takes precedence in HandleWatchTonightCards.

Macroscope summarized 4462427.

For You, recommendation section and Watch Tonight cards were built from a
hand-copied subset of the item's fields that left out content rating,
advisory age, studios, runtime, networks and airing status. Poster badges
configured in Card overlays had no value to show, so they were missing on
those cards while the same title showed them in Home and library rows.

All card surfaces now start from one shared mapping of the item's catalog
fields.
@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Oct 25, 2026
@silo-kody

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

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

Recommendation and Watch Tonight builders now use a shared media-item mapping. Handlers apply v1 card projections before writing responses. A test checks badge metadata on Discover movie and series cards and a Watch Tonight movie card.

Changes: Section card metadata

Layer / File(s) Summary
Shared card mapping
internal/api/handlers/sections.go, internal/api/handlers/recommendations.go, internal/api/handlers/watch_tonight.go
sectionItemFromMediaItem maps catalog fields and normalizes nil Genres and Keywords to empty slices. Section, recommendation, and Watch Tonight builders use the helper.
Recommendation response projections
internal/api/handlers/recommendations.go, internal/api/handlers/watch_tonight.go, internal/api/handlers/watch_tonight_cards.go, internal/api/handlers/recommendations_upcoming_test.go
Discover, section, and Watch Tonight handlers apply v1 card projections before writing responses. The Watch Tonight swipe card retains its own runtime. The test checks badge metadata on Discover movie and series cards and a Watch Tonight movie card.

Estimated code review effort: 2 (Simple) | ~10 minutes

Severity of issue fixed: Low

Possibly related issues

  • Issue 1146 concerns web recommendation rendering. This change updates recommendation card data used by the web client.
  • Issue 1139 concerns client rendering of recommendation output. This change updates recommendation card fields used by that rendering.
  • Issue 1145 concerns server recommendation output. This change updates fields in recommendation card responses.

Suggested reviewers: quick104

Merge Risk: Minimal · up to a7cdc

The implementation is mergeable; add the Watch Tonight production-path assertion to protect against future regressions.

Security architecture risk: Minimal · up to a7cdc

The added metadata remains within the existing profile-filtered card responses. The legacy endpoints explicitly preserve their previous output, and the inspected changes do not expand access permissions or modify shared catalog state. No material security risk was found introduced or worsened by this change.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The changed exposure is additional descriptive metadata on cards already selected for the requesting user and profile. The inspected paths preserve existing identity and catalog-filter inputs rather than introducing broader item selection or additional authority.

Trust Boundaries and Controls

  • observed — Recommendation handlers retain context-derived user/profile identity and request access filtering. The recommendation route group requires a profile, and v2 consumers obtain identity through the profile-scoped viewer gate and derive their access filter from authenticated context.

Resilience and Maintainability Implications

  • inferred — The new projections operate on freshly constructed response slices and replace fields on card values. Although mapping copies slice and pointer references, the projections do not modify their underlying objects. Consequently, the inspected changes do not introduce cross-request mutation, persistent partial state, or cleanup obligations when a response fails or is interrupted.
Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: showing configured poster badges on For You recommendation cards.
Linked Issues check Passed Issue [#3016] requires For You cards to provide the metadata used by configured poster badges. sectionItemFromMediaItem now supplies the shared catalog fields, including ContentRating, `AdvisoryAg…
Out of Scope Changes check Passed The reviewed changes stay within [#3016]. The shared mapper refactor prevents card-field drift. The v1 adapter functions preserve the frozen v1 recommendation and Watch Tonight responses while v2 card…
Description check Passed The pull request description directly explains the recommendation and Watch Tonight card metadata changes, the shared mapper, v1 compatibility handling, tests, validation, and user-facing badge behavi…
Full details: Linked Issues check

Explanation

Issue [#3016] requires For You cards to provide the metadata used by configured poster badges. sectionItemFromMediaItem now supplies the shared catalog fields, including ContentRating, AdvisoryAge, Studios, Runtime, Networks, and ShowStatus. Recommendation and Watch Tonight builders use this mapper. TestRecommendationCardsCarryBadgeMetadata checks the required fields on movie and series cards. The existing client overlay path can therefore use the same fields as ordinary cards.

Full details: Out of Scope Changes check

Explanation

The reviewed changes stay within [#3016]. The shared mapper refactor prevents card-field drift. The v1 adapter functions preserve the frozen v1 recommendation and Watch Tonight responses while v2 cards retain the new metadata. The added test supports the metadata objective. No unrelated product area or client path is changed.

Full details: Description check

Explanation

The pull request description directly explains the recommendation and Watch Tonight card metadata changes, the shared mapper, v1 compatibility handling, tests, validation, and user-facing badge behavior.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-triage silo-triage Bot added bug Something isn't working go Pull requests that update go code impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Oct 25, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 25, 2026

Copy link
Copy Markdown
  • For You cards: the API excerpts do not show the poster badges; add before-and-after captures of the same cards at desktop and phone widths.
  • Watch Tonight cards: no evidence shows the badge change on this surface; add before-and-after captures at desktop and phone widths.

Suggested fix: No diff — publish the captures and identify the surface and build or commit.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@coderabbitai coderabbitai Bot added api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase impact: usability Core flow broken or severely blocked labels Oct 25, 2026
@Rhainland

Copy link
Copy Markdown
Contributor Author

Evidence is now published (link in the Evidence section): For You before and after at desktop and phone widths, with the library page as a reference. Watch Tonight cards are built by the same shared function, and the new handler test covers their fields. I didn't capture that row separately, because it needs watch history the synthetic library doesn't have.

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

Reviewed head 566a917df3d405d12071081247fb2bab71203e50 against merge base 6de6d5e5e285a9b423e95a1122cb39e5bb9ca93b.

One disclosed contract-policy finding is attached to the mapper call. The separate summary covers integration, verification, and validation records.

Note

AI-assisted review posted as Quick104 using Codex in T3 Code (gpt-6.1-sol). The review included three focused Codex passes, a final sweep, and one independent Claude review (claude-opus-5-5). Findings were checked against the source by the posting agent.

@Quick104

Quick104 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Fit: 9/10 · Readiness: 9/10 · ready; CI green on 44624272e

Reviewed 566a917 and pushed fixes; the head is now 44624272e. The PR fixes #3016 at the server. For You cards now carry the fields that Card overlays badges read, and recommendation, Watch Tonight and Home cards build from one mapper instead of three field lists. It adds no queries. The frozen /api/v1 routes answer exactly as they did before, and nothing is left for maintainers to decide.

Fixed on this branch

  • 8c73f22f4 merges current main, which clears the conflicts with feat(catalog): carry series artwork, dates and ratings on episode cards #3197, feat(sections): show season art on Continue Watching episode cards #3214 and perf(home): read Home rows 20 cards at a time #3276. The shared mapper also carries the ReleaseDate and LastAirDate that main added to each card. Without that, v2 cards would have silently lost release_date and last_air_date.

  • 2de69cddc corrects the mapper comment, which claimed more than the mapper does, and the stale swipe-card runtime comments. These are comment changes only.

  • a7cdc39e9 keeps the v1 responses unchanged, as the maintainers decided in the v1 thread. The v1 Discover, recommendation section, Watch Tonight and swipe-card handlers clear runtime, studios, networks, content_rating and show_status before they respond. On Watch Tonight and swipe cards, keywords goes back to null. Swipe cards keep their own runtime, which v1 always sent. v2 reads the service methods, which are unchanged.

  • 44624272e replaces the direct Watch Tonight mapper assertion with the production WatchTonight method used by v2. The existing test checks both movie and series cards. A temporary runtime-dropping mutation inside that path fails the test; restored production code passes the focused tests and changed-line lint.

Verification

  • TestRecommendationCardsCarryBadgeMetadata fails on merge base 6de6d5e5e with the missing rating, advisory, runtime, studio, network and show-status fields, and passes on the branch.
  • v1 equivalence: a throwaway handler test, not committed, ran the same stub items through the four v1 routes. On merge base 81ae2ce1c and on a7cdc39e9 the JSON was identical, including key order, null versus [], and omitted fields. A separate verifier compared the mapper plus the reset against the base builders and got byte-identical JSON. No test was added for this, because repository rules limit frozen v1 tests to authorization checks.
  • v2: the card fields the v2 adapters read, including the badge fields, keywords and both dates, are the same on a7cdc39e9 as on 2de69cd.
  • On a7cdc39e9: go build ./..., go vet, and the focused internal/api/handlers, internal/apiv2 and internal/recommendations tests pass. make lint-changed reports 0 issues, and verify-apiv2-openapi, verify-apiv2-contract, verify-apiv2-fixtures and verify-local-paths report no change.
  • I didn't repeat a live browser check. The author's evidence shows For You through v2 on the pre-merge head, and none of the follow-up commits change the v2 fields it shows, so the evidence page still applies. No first-party client renders Watch Tonight.

Validated features

I read the results from the task comments, because the project board wasn't readable in this run. The 2026-10-23 comments on #1146, Silo-Server/silo-apple#309 and #310, and Silo-Server/silo-android#319 and #320 each record results. In all five tasks, C1, C3 and C4 render For You cards, which can now show more badges. That is a minor presentation change, so those cases need a quick presentation re-check after merge; I didn't run them on a device or in a browser. C2 and C5 are unaffected. The Android TV #320 C3 failure for a stale feed is tracked separately in Silo-Server/silo-android#676, and this PR doesn't change it. The PR body lists changes … C1, C3, C4 for all five tasks.

Follow-ups

  • Clients: Apple, Android and web read these fields from the existing v2 card schema, so they need no change.
  • jellycompat: builds recommendations through its own mapper, so it isn't affected.
  • User manual: the page on poster badges describes server-wide defaults and doesn't exclude For You. This fix makes Silo match it, so no manual issue is needed.
  • Unrelated, not filed: Favorites and Watchlist in the dedicated v2 list routes still return thinner cards. The web draws those pages from catalog/query, which fills every badge field, so nobody sees the gap.

Note

AI-assisted review posted as Quick104 using Claude Code in T3 Code (claude-opus-5-5). Three finder passes, a validation pass and two verifiers checked the change. Codex (gpt-6.1-sol) ran one cross-provider round on 566a917, which found nothing beyond the v1 question and the merge, and one on the v1 fix plan, which found nothing. A further verifier confirmed a7cdc39e9. The posting agent ran the tests and checks listed above.

🤖 Claude Code in T3 Code (claude-opus-5-5)

Coordinator check: required CI passes on 44624272e; all review threads are resolved, and there are no approving or change-requesting reviews. The fresh target-main fetch adds only #3388’s admin leaderboard query and its documentation/test selection, which do not affect recommendation cards. No base update is needed for that change. Handed back without approval or merge.

🤖 Follow-up by Codex in T3 Code (gpt-6-astra).

Quick104 and others added 2 commits November 1, 2026 23:08
Resolve the recommendations.go and watch_tonight.go conflicts by keeping
the shared sectionItemFromMediaItem call. The release and last-air dates
main added to each card literal now come from the shared mapper, and the
parent-artwork assignments stay with each caller.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shared card mapper's comment said every card surface shows the same
metadata wherever an item appears. Recommendation and Watch Tonight items
are not localized before mapping, and the taste-seed picker keeps its own
card, so it now says which surfaces use the mapper and that it copies the
item as given.

The swipe card comments said production sets runtime only on the swipe
card. The shared mapper now fills the embedded card's runtime from the
same item, so they describe the outer member hiding the inner one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

Second review of 566a917 (merge base 6de6d5e5e). The fix works: TestRecommendationCardsCarryBadgeMetadata fails on the merge base with the missing rating, advisory, runtime, studio, network and show-status fields, and passes on this head. I found one defect in how the branch meets current main and two comments that are now wrong. None of them changes what the PR fixes. I'm fixing all three in commits on this branch, so there's no need to change anything yourself.

The swipe-card comments are outside the diff, so they're covered here. In watch_tonight_cards.go, the comments on Card() and NewWatchTonightCardView say production sets runtime on the swipe card and not on the embedded section item. Since buildSectionItem now starts from the shared mapper, the embedded card carries the same mi.Runtime. The output doesn't change: v1 JSON still has one runtime key, because the outer field hides the inner one, and v2 still gets mi.Runtime. Only the comments are now wrong.

The v1 freeze question in the existing thread is still open; I added what I found there.

🤖 Claude Code in T3 Code (claude-opus-5-5)

Comment thread internal/api/handlers/sections.go Resolved
Comment thread internal/api/handlers/sections.go Resolved
@macroscopeapp

macroscopeapp Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

The recorded recommendation-card cases need a minor presentation re-check: the mapper now supplies catalog metadata consumed by configured poster overlays. This affects #1146 C1/C3/C4; silo-apple#309 C1/C3/C4 and #310 C1/C3/C4; and silo-android#319 C1/C3/C4 and #320 C1/C3/C4. Recommendation ranking and refresh logic, profile selection, and access filtering are unchanged. Android TV C3’s recorded stale-feed result is tied to the separate issue #676; this PR does not change that refresh path. #1145 C1–C3 still await the parent rubric/window agreement; this PR does not unblock them.

The current Validation tasks: line is wrong: the 2026-10-23 comment on #1146 records results for C1–C5 on server 31fabc723; the client tasks also have recorded results.

Suggested fix: No diff — replace the line with:

Validation tasks: changes #1146 C1, C3, C4; changes Silo-Server/silo-apple#309 C1, C3, C4; changes Silo-Server/silo-apple#310 C1, C3, C4; changes Silo-Server/silo-android#319 C1, C3, C4; changes Silo-Server/silo-android#320 C1, C3, C4

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

Posted via Macroscope — v1 validation impact

The shared card mapper also fills runtime, studios, networks, content
rating and show status, and Watch Tonight cards now carry keywords. The
v1 discover, section, Watch Tonight and swipe-card routes never sent
these, so their handlers reset them before writing the response. Watch
Tonight keeps keywords as null and swipe cards keep their own runtime,
as v1 always sent. The service methods are unchanged, so v2 cards keep
the badge fields and dates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

Follow-up Comments

Nitpick Route the Watch Tonight badge assertion through WatchTonight.

366-382: Trivial · Maintainability & Code Quality · Quick win

Route the Watch Tonight badge assertion through WatchTonight.

The Watch Tonight assertion calls handler.buildSectionItem directly on movie. That checks only the shared card mapper. It skips the production Watch Tonight path, watchTonight, which merges candidates, enriches them through enrichItems, and then calls buildSectionItem for each item. A regression in that path, such as enriched fields that are dropped or a removed mapper call, would not fail this test.

Change the test so the Watch Tonight case exercises the production path:

  • Configure the Watch Tonight reader stub to return the movie and series IDs.
  • Configure the item fetcher that enrichItems uses to return movie and series.
  • Call handler.WatchTonight(context.Background(), 7, "profile-1", catalog.AccessFilter{}, limit).
  • Apply the same badge assertions to the returned items.

This uses the v2 seam, so the test does not depend on the frozen v1 response bodies. Keep the existing Discover assertions.

Open the source location


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 04f26dce-f5b1-481c-9eb1-73ca3111c4ff
Commits

Reviewing files that changed from the base of the PR and between 566a917 and a7cdc39.

Files selected for processing: 4
  • internal/api/handlers/recommendations.go
  • internal/api/handlers/sections.go
  • internal/api/handlers/watch_tonight.go
  • internal/api/handlers/watch_tonight_cards.go
Files skipped from review as they are similar to previous changes: 1
  • internal/api/handlers/sections.go

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

@Quick104

Quick104 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

CI on a7cdc39e9 failed in TestRelayMovePreservesMandatoryAudio/legacy=true with unconfirmed rehome status=502, cleanup=0, the existing playback cleanup race tracked in #3361. The aggregate CI result failed because of that job. I requested one rerun of the failed jobs in run 41363822432; the result is pending.

🤖 Codex (gpt-6-astra)

@Quick104

Quick104 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Addressed CodeRabbit’s Watch Tonight test suggestion in 44624272e. TestRecommendationCardsCarryBadgeMetadata now calls WatchTonight, using the existing reader and fetcher stubs, and checks movie and series cards alongside Discover.

Temporarily dropping runtime inside the production Watch Tonight path makes the revised test fail; restoring it makes the focused recommendation/Watch Tonight/swipe-card tests pass. Changed-line lint reports 0 issues. This commit changes only the existing test; the frozen v1 response fix and v2 output are unchanged. CI is pending on the new head.

🤖 Codex (gpt-6-astra)

@Quick104
Quick104 merged commit ff256b0 into Silo-Server:main Nov 2, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase bug Something isn't working go Pull requests that update go code impact: polish Annoyance, cosmetic, or nice-to-have impact: usability Core flow broken or severely blocked priority: P2 Limited scope, workaround exists, or polish size/M 50–199 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] For You cards omit metadata required by several poster badges

2 participants