You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(tv): show audiobook covers full size and framed in the hero - #968
On Android TV, audiobooks look small and soft on the Recommended page of an audiobook library and in audiobook rows on Home:
Cards are short. Square audiobook cards use the dense poster width, so they are two thirds as tall as the poster cards they sit beside.
The hero crops the cover. Audiobooks have no backdrop, so the hero stretches the card's poster across the landscape backdrop area. It comes out blurry, and the title and author printed on the cover are cut off.
Closes#959
Validation tasks: #350 (Audiobooks, Android TV) and #339 (Requests, Android TV) are still to do and will check this hero. #313 (Calendar, Android TV) and #320 (Recommendations, Android TV) are done; items without a backdrop now show a framed poster there, so re-check that after merge.
Other clients: Apple Silo-Server/silo-apple#1198 (the source); Roku N/A (audiobooks are out of scope, decision D-8 in its docs/spec.md); Web N/A (its Recommended hero already frames the cover over a tint)
Solution
Card size. A Skyline row made only of audiobooks uses cards 1.5 times the dense poster width, so its square covers are as tall as poster cards (tvSkylineDenseCardWidth, matching tvOS denseCardWidth(for:)). Rows that mix shapes keep the poster width. Artwork requests are unchanged: at a 1080p UI the wider card is 264 px, which still fits the server's 300 px poster size.
Framed cover. When the focused item has no backdrop, the hero draws its whole cover in the top-right corner, 190 dp high (tvOS's 380 pt on the 960 × 540 dp canvas), between the top menu and the rows. Audiobooks are square and other posters are 2:3. Episodes keep the old treatment, since their poster can be a landscape still. Once the item's detail arrives, the feed loads the detail poster, which the server sends at a larger size than the card's, at cover size. The cover switches to it only after that image has loaded, so a slow or failed load leaves the card's cover on screen. Requests previews without a backdrop frame their poster the same way, as on tvOS.
Glow and shadow. The cover sits on an elevation shadow and a soft glow of itself: the cover scaled up 12% and blurred. Modifier.blur does nothing below Android 12 (minSdk is 24), so the glow is blurred in software on a layer about 110 px square. It reuses the 128 px decode the ambient tint sampler already requests.
Android TV emulator (API 36, 1920 × 1080), on head 1740994f7 against main bbbfdeeb5. Both builds were signed in to one sandbox built from Silo-Server/silo-server main, with the same profile; the PR build was installed over main's, keeping its data. The sandbox has an eight-book audiobook library of generated test art, with the title at the top and the author at the bottom, so a cropped hero is easy to see. Show Audiobooks is on in both builds.
Audiobook Recommended page and Home's audiobook row: main shows short square cards and an enlarged, blurred middle of the cover with the title and author cut off. This branch shows full-height cards and the whole cover framed, sharp, with a glow and shadow.
A movie with a poster and no backdrop (Aladdin): main stretches the poster into the backdrop corner; this branch frames it whole at 2:3, with no wash on its edges.
Requests preview with a poster and no backdrop: framed the same way. The request was inserted directly into the sandbox database, because the sandbox can't reach TMDB to create one.
A recording across several covers shows each one staying sharp from focus through the detail-poster load, with no placeholder flash and no glow fade. The test art uses the same image for the card and detail posters, so the upgrade itself isn't visible.
Tests::androidTvApp:testDebugUnitTest on 1740994f7: 1421 tests, 0 failures, including the new TvHeroCoverTest (6 tests: which items frame a cover and at which shape, the detail-poster upgrade, and the shown cover staying until that poster has loaded). The new tests use APIs this branch adds, so they don't compile on main.
Builds::androidTvApp:assembleDebug and :androidTvApp:lintDebug succeed.
A movie or series with no backdrop now shows a framed 2:3 poster in the hero instead of a cropped one. This includes Calendar, which uses the same hero.
With Large cards on a TV whose UI runs at 4K density, a square card (634 px) upscales the 500 px poster the server returns. Requesting larger posters would raise the size of every poster on Home; tvOS makes the same tradeoff.
The glow decode and blur run off the main thread once per focused cover. On a busy x86 emulator host the whole earlier full-screen version took 55–175 ms; this layer is about 1/40th of that area. It was not timed on an ARM TV.
Follow-ups
None.
AI disclosure
Harness: Claude Code, running in T3 Code
Tool(s): T3 Code device tools (Android TV emulator), Codex gpt-6.1-sol and Claude claude-opus-5-5 plan reviews
Model(s): claude-opus-5-5; claude-fable-5-2 for the review fix in 67cc01f24
Involvement: AI-written. The agent investigated, implemented, verified on an emulator and wrote this description; the project owner asked for the change.
Adversarial review: a plan round ran after the first implementation. The Opus cut found the full-screen software wash unnecessary, since the gradient is already dithered, and it was replaced with the small glow layer above. The Sol attack reached the same approach and raised two findings: retained wash bitmaps (no longer applies) and Large-card upscaling at 4K density (kept, see Risks). A simplify pass ran before each commit. The background adversarial review (Codex gpt-6.1-sol, reviewed 512e198) found that the hero switched to the detail poster before that image had loaded, so a slow or failed load showed the placeholder instead of the cover already on screen. 67cc01f24 fixes it: the upgrade waits for a successful load. A maintainer review (claude-opus-5-5) found three more issues, fixed in efb0e55b5, and, after merging main, that fix(tv): stop the hero backdrop banding on dark art #1015's corner fade would wash out the framed cover's edges, fixed in the merge 1740994f7.
Show full-size framed audiobook covers in the TV hero
Adds a FramedCover layer to the root hero that draws eligible poster-only artwork at full size with rounded corners, a shadow, and a blurred glow behind it, instead of cropping it as a backdrop (TvRootHeroBackdrop.kt)
Eligibility lives in SectionItem.heroCoverAspect: items with a backdrop or no poster, episodes, and episode stills are excluded; audiobooks get a square aspect and other media get a 2:3 poster aspect (TvFocusMarqueeModel.kt)
The shown cover stays until its detail poster has loaded: marquee state exposes the pending URL and aspect, the section feed preloads it at the framed-cover dimensions, and only a successful Coil load swaps the artwork. A qualifying backdrop always takes precedence over the detail poster.
Glow images are generated with a three-pass-per-axis box blur and cached in a 16-entry LRU keyed by aspect and URL (TvHeroCoverGlow.kt)
Audiobook-only Skyline sections use 1.5x the dense poster width for row cards (TvSkylineSectionFeed.kt)
Rows of audiobooks use square cards as tall as poster cards. When the
focused item has no backdrop, the root hero frames its whole cover
top-right instead of cropping it across the backdrop area, using the
detail's poster once it arrives. The wash, the cover's glow and its
shadow are drawn into one dithered bitmap. Matches tvOS
(Silo-Server/silo-apple#1198).
Closes#959
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The platform already dithers the gradient wash, so the full-screen
software render is dropped. The framed cover gets an elevation shadow
and a small blurred glow layer behind it, which works on every API
level. The cover shape comes from one SectionItem helper that the
hero and the prefetch share, and the existing grain overlay now also
runs while art is shown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The TV hero now supports framed poster covers for eligible items without backdrops. The feed preloads detail posters before applying them and uses wider cards for audiobook-only rows.
Changes: Framed Hero Covers and Audiobook Cards
Layer / File(s)
Summary
Cover eligibility and poster enrichment androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvFocusMarqueeModel.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/requests/TvRequestsPage.kt, androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/components/TvHeroCoverTest.kt
Marquee content assigns a cover aspect to eligible items without backdrops. Detail posters replace framed-cover artwork only after loading; existing backdrops remain unchanged. Tests cover eligibility and poster loading.
Cover preloading and audiobook card widths androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvSkylineSectionFeed.kt
The feed preloads pending detail covers and marks them loaded on successful Coil results. Audiobook-only rows use wider cards.
Framed hero rendering and glow androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvRootHeroBackdrop.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvHeroCoverGlow.kt
The hero uses separate crossfade layers for corner backdrops and framed covers. Framed covers use rounded clipping and a shadow; the glow modifier generates a blurred artwork image.
sequenceDiagram
participant TvMarqueeEnrichment
participant TvFocusMarqueeState
participant TvSkylineSectionFeed
participant Coil
participant TvRootHeroBackdrop
TvMarqueeEnrichment->>TvFocusMarqueeState: Provide detail poster URL
TvFocusMarqueeState->>TvSkylineSectionFeed: Expose pending cover
TvSkylineSectionFeed->>Coil: Load cover at aspect-adjusted size
Coil-->>TvSkylineSectionFeed: Return successful load
TvSkylineSectionFeed->>TvFocusMarqueeState: Mark poster URL loaded
TvFocusMarqueeState->>TvRootHeroBackdrop: Provide resolved framed-cover content
Loading
Possibly related PRs
Silo-Server/silo-android#711: That PR supplies series backdrops for TV episodes. This change selects a framed-cover path only when an item has no backdrop.
Suggested reviewers:rxwatcher, rhainland
Merge Risk: Low · up to 17409
On Android TV devices older than Android 9, the hero wash will not get the grain that hides gradient banding while artwork is shown. This is a small visual gap against the stated goal. It is easy to fix and does not affect functionality, so merging is low risk.
Security architecture risk: Minimal · up to 17409
The TV hero uses the app’s existing artwork-loading path, and an unsuccessful poster load leaves the original cover visible. The reviewed change showed no material increase in security or failure risk.
Retained concerns
No architecture-level concerns identified.
Security review details
Security Blast Radius
observed — The new request trigger is an eligible displayed TV hero item, so its detail poster can be fetched without opening the detail screen. The base TV audiobook detail screen already consumed the same detail poster field.
Trust Boundaries and Controls
observed — The marquee rejects blank detail poster URLs and otherwise passes the URL to the shared loader. The changed call site adds neither origin validation nor credentials of its own; it inherits the loader’s configuration.
Resilience and Maintainability Implications
observed — A new pending-cover value supersedes the previous load through collectLatest. A returned failure does not mark the poster ready, so the original cover remains visible. The glow bitmap cache is capped at 16 entries.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: audiobook covers shown full size and framed in the TV hero. The changeset adds wider audiobook skyline cards, a framed cover in the hero for items without a backdrop, …
Linked Issues check
Directly linked issue #959 is the only active target. Its coding requirements are met by the PR summary and the described changes.
The changes stay within the framed-cover, card-width, and wash requirements of #959.
- TvFocusMarqueeModel.kt, TvRootHeroBackdrop.kt, TvHeroCoverGlow.kt, and TvSkylineSectionFeed.kt implement…
Description check
The description is specific and closely related to the changeset. It explains the audiobook card width change in Skyline rows, the framed cover in the TV hero for items without a backdrop, the detail-…
Full details: Title check
Explanation
The title names the main change: audiobook covers shown full size and framed in the TV hero. The changeset adds wider audiobook skyline cards, a framed cover in the hero for items without a backdrop, and a glow layer. The title is specific and concise, and it matches the objectives.
Full details: Linked Issues check
Explanation
Directly linked issue #959 is the only active target. Its coding requirements are met by the PR summary and the described changes.
Card height [#959]: TvSkylineSectionFeed gives all-audiobook Skyline rows 1.5 times the dense poster width (tvSkylineDenseCardWidth). Square covers then match poster card height. The issue names tvOS denseCardWidth(for:) as the reference, and the PR states it matches that helper. Mixed-shape rows keep the poster width. This follows the Apple reference. I did not inspect the code to confirm the mixed-row rule.
Framed cover [#959]: when the focused item has no backdrop, TvRootHeroBackdrop draws the full cover top-right at 190 dp. The cover aspect comes from SectionItem.heroCoverAspect: square for audiobooks, 2:3 for other posters. Episodes keep the old treatment.
Sharpness and detail poster [#959]: enrichment supplies posterUrl. The hero swaps to the detail poster only after it loads, so a slow or failed load keeps the row cover visible. A preload matches the framed cover's size and scale.
Glow and shadow [#959]: the cover has an elevation shadow and a software-blurred glow layer (Modifier.coverGlow). The glow layer is decoded at 128 px and cached.
Dithered wash [#959]: the existing DitheredWashOverlay grain now also runs while art is shown.
Tests: TvHeroCoverTest covers aspect selection, detail-poster upgrade, the load gate, and backdrop precedence. The PR reports the unit test and lint builds as passing. Emulator captures were taken before the final commits 67cc01f24 and efb0e55b5. The later changes rely on unit tests, build, and lint, not a live rerun. This limits live confirmation of the final behavior. It does not show a missing requirement.
Full details: Out of Scope Changes check
Explanation
The changes stay within the framed-cover, card-width, and wash requirements of #959.
TvFocusMarqueeModel.kt, TvRootHeroBackdrop.kt, TvHeroCoverGlow.kt, and TvSkylineSectionFeed.kt implement the hero, card, and wash requirements directly.
TvRequestsPage.kt sets coverAspect for the Requests preview when an item has a poster and no backdrop. The hero is shared, so this follows the same no-backdrop rule. The PR states tvOS does the same. It is a three-line change.
The 2:3 framing of non-audiobook posters follows from the general no-backdrop rule. The issue states that rule without limiting it to audiobooks.
TvHeroCoverTest.kt supports the new behavior.
The PR notes a risk: movies and series without backdrops now show a framed poster, including on Calendar. This is a consequence of the shared hero rule, not unrelated work. It is not a demonstrated unrelated change.
Full details: Description check
Explanation
The description is specific and closely related to the changeset. It explains the audiobook card width change in Skyline rows, the framed cover in the TV hero for items without a backdrop, the detail-poster upgrade that waits for a successful load, the glow and shadow layer, and the Requests preview framing. It also lists validation steps and risks that match the files in the raw summary.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
The evidence link and described Recommended audiobook comparison cover the core square-cover change on Android TV, but these visible TV changes lack captures:
Home audiobook card sizing (TvSkylineSectionFeed.kt): the description says Home had no audiobook rows. Add before-and-after screenshots of Home with the same audiobook data.
Framed posters for no-backdrop movies or series (TvFocusMarqueeModel.kt, TvRootHeroBackdrop.kt): the described movie example has a backdrop, so it does not show the new 2:3 poster treatment. Add a before-and-after pair of a no-backdrop movie or series focused in the hero.
Framed request previews (TvRequestsPage.kt): the description says this was not checked live. Add before-and-after screenshots of the same request preview.
Suggested fix: add these Android TV captures to the evidence page, with matching data in each before-and-after pair.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
The reason will be displayed to describe this comment to others. Learn more.
Thumbnail loading swallows coroutine cancellation
A canceled image request can be treated as a missing thumbnail instead of propagating cancellation. Replace runCatching with a try/catch that rethrows CancellationException and returns null for other failures.
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvHeroCoverGlow.kt, line 69:
Thumbnail loading swallows coroutine cancellation
Replace `runCatching` with a `try`/`catch` that rethrows `CancellationException` and handles other failures by returning null. A canceled image request must propagate cancellation rather than being treated as an ordinary missing thumbnail.
**Also found in:**
- `androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvSkylineSectionFeed.kt:573-573`
Kody rule violation: [Preserve coroutine cancellation and protect accepted saves](https://kodus.siloserver.org/settings/code-review/1247142403/kody-rules/7433d038-488a-444f-83cf-84512496c2dc?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 67cc01f. Coil returns a failed load as an error result, so the glow loader needs no runCatching and cancellation now propagates. The second site, in TvSkylineSectionFeed.kt, is gone: the cover load moved to its own effect, which has no runCatching either.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the clarification. Removing runCatching at both sites addresses the cancellation concern, assuming Coil propagates cancellation from the request. I haven’t independently verified commit 67cc01f24.
The reason will be displayed to describe this comment to others. Learn more.
Framed covers still crop artwork with nonstandard aspect ratios
Artwork with a different aspect ratio can lose its edges, cutting off titles or author names. Use ContentScale.Fit to preserve the entire cover.
Prompt for LLM
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvRootHeroBackdrop.kt, line 198:
Framed covers still crop artwork with nonstandard aspect ratios
Covers whose actual aspect ratio differs from the assumed square or 2:3 frame lose their edges, so titles or author names can still be cut off in the hero. Use `ContentScale.Fit` to preserve the entire artwork within the frame.
The reason will be displayed to describe this comment to others. Learn more.
Not changing this. The frame is the shape the cards use for the same artwork (square for audiobooks, 2:3 for posters), and Apple TV fills its frame the same way (contentMode: .fill in framedCover, Silo-Server/silo-apple#1198). ContentScale.Fit would letterbox an off-ratio cover inside the rounded frame, with the shadow and glow drawn around empty space.
The reason will be displayed to describe this comment to others. Learn more.
Agreed. The frame represents the expected artwork shape, and filling it keeps the cover, rounded corners, shadow, and glow aligned. Given the Apple TV behavior, keeping ContentScale.Crop rather than switching to Fit makes sense.
One verified finding is attached inline. Validation: the focused hero, marquee and Skyline tests pass, and a temporary Robolectric harness reproduced the cover loss through the production model and renderer with a controlled Coil request. No physical TV validation was run.
AI-generated review by Codex gpt-6.1-sol, run from Claude Code in T3 Code.
The hero swapped a framed cover to the detail's poster as soon as the
detail answered, before that image had loaded. A slow load showed the
placeholder in place of a cover already on screen, and a failed load left
it there. The upgrade also had no prefetch when the priority warm-up
fetched the detail first.
The marquee state now holds the detail poster back until the feed has
loaded it, whichever request fetched the detail. The glow's thumbnail
load no longer swallows cancellation.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Detail-poster loading (TvFocusMarqueeModel.kt, TvSkylineSectionFeed.kt) lacks evidence on Android TV: the linked captures are from 512e198b0, before 67cc01f24 changed the hero to keep the card cover visible until the detail poster loads. Add a recording showing the delayed-load transition (and the failed-load behavior, if that is part of the claimed behavior).
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
The reason will be displayed to describe this comment to others. Learn more.
Previously loaded covers bypass the load gate after cache eviction
After Coil evicts an image, loadedCoverUrls can cause a placeholder to replace the row cover while ThumbhashImage reloads the poster. Gate the swap on the current image request succeeding instead of retaining an unbounded success flag.
Prompt for LLM
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvFocusMarqueeModel.kt, lines 401-404:
Previously loaded covers bypass the load gate after cache eviction
The permanent URL set treats an earlier successful load as proof that the image is still available, even after Coil evicts it from its memory cache. Revisiting that item skips preloading and immediately replaces the row cover with a placeholder while `ThumbhashImage` reloads the detail poster; gate the swap on the actual image request succeeding for the current display instead of retaining an unbounded success flag.
The reason will be displayed to describe this comment to others. Learn more.
Not changing this. The gate exists so a slow or failed load never replaces a cover that is already on screen. Returning to an item after eviction is a new focus: the hero crossfades from the previous item either way, so no on-screen cover is replaced. If Coil evicted the bitmap, the new layer shows the ThumbHash while the poster decodes from disk, which is what a backdrop item does in the same case. The set holds one URL per cover focused on the page and goes with the page's marquee state.
The reason will be displayed to describe this comment to others. Learn more.
Understood. The gate protects the cover already displayed during a detail-poster upgrade; revisiting an item after eviction is a separate focus transition, where a temporary ThumbHash is an accepted tradeoff. The URL set is also limited to the page’s marquee state.
Given that intended behavior, I’ll withdraw the suggestion.
The reason will be displayed to describe this comment to others. Learn more.
Maintainer review of 462b8e763 (this branch with main merged in, since #979 changed TvSkylineSectionFeed.kt). Two verified defects and one cleanup are attached inline. I'm fixing all three in a commit on this branch, so there's no need to change them yourself. Another comment follows with the summary and scores.
The hero crossfades on the whole marquee content, so the detail poster
upgrade composed a second framed cover whose glow started empty and was
blurred again from the new URL: the glow faded out and popped back. Blur
the glow from the card's poster, which the upgrade leaves alone, and keep
finished glows in a small LRU so a new layer starts with its glow.
Preload the detail poster at the size and FILL scale the framed cover's
Crop request resolves to. A FIT decode of a cover whose shape differs
from the frame was too small for that request, so the hero could show
its placeholder after a successful preload.
Take the cover's shape from the helper the cards use.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Readiness. Every defect found is fixed, CI is green, and the current head was checked live on an Android TV emulator against main. One maintainer decision remains: whether TVs below Android 9 should get the grain behind art (below). Not checked on a real TV or a TV below Android 9.
Addressed in this review
fix(tv): stop the hero backdrop banding on dark art #1015's corner fade would have washed out the framed cover (1740994f7). After the merge, the fade that blends backdrop art into the wash was also drawn over the framed cover: about 35% wash at its bottom edge and 46% at its bottom-left corner, plus its shadow and glow. Framed covers now draw above the fade, in a second crossfade with the same timing.
From the first pass (efb0e55b5): the glow no longer fades out and back when the cover upgrades to the detail poster; the detail-poster preload now matches the framed cover's request, so it hits the memory cache; and the hero takes the cover's shape from the same helper the cards use.
Live check
Android TV emulator (API 36, 1080p). Main bbbfdeeb5 and this head were run against one sandbox with the same profile and data. An eight-book test audiobook library was added. "Aladdin" and "Flash" are template movies with a poster and no backdrop, and one request without a backdrop was seeded in the database.
Audiobook Recommended page and Home's audiobook row: full-height cards and the whole cover, sharp, with glow and shadow. On main the cover is cropped, with the title and author cut off.
A movie without a backdrop, and a request without one: the poster is framed whole at 2:3, with clean edges.
A recording across covers shows each one staying sharp from focus through the detail-poster load, with no placeholder flash or glow fade. The test art uses the same image for both posters, so the upgrade itself isn't visible.
:androidTvApp:assembleDebug, lintDebug and testDebugUnitTest pass (1421 tests). The new TvHeroCoverTest tests call APIs this PR adds, so they don't compile on main and don't count as proof that the fix is needed.
Other feedback
Codex's P2 on cache eviction (TvFocusMarqueeModel.kt) is the case Kody raised and withdrew on 11-19. A revisit is a new focus, so no cover already on screen gets replaced. Answered in its thread.
CodeRabbit asks for the grain behind art below Android 9. That's the open decision below; answered in its thread and left open.
The Macroscope evidence notes are covered: the evidence page now has the current head, Home's audiobook row, a framed movie poster, a Requests preview, and the transition recording.
Square art that isn't an audiobook, such as music albums, is framed at 2:3, the shape its card already uses. Any change belongs in the card shape helper, not in this PR.
Validated features
#350 (Audiobooks, Android TV) and #339 (Requests, Android TV) are still to do and will check this hero. #313 (Calendar, Android TV) and #320 (Recommendations, Android TV) are done; items without a backdrop now show a framed poster there, which the PR's Risks section explains, so re-check that after merge. The phone, tablet and foldable apps share no code with this change.
Checks
User manual: unaffected. siloserver.org doesn't describe TV hero art or card sizes.
Cross-provider round: Codex gpt-6.2-sol reviewed 462b8e763 in the first pass. No new round ran for the merge; its one behavior change is covered by the live check.
The linked captures are from 512e198b0, so they do not show the current detail-poster handoff, including the Scale.FILL preload added at the current head. Because that affects the visible loading transition, add an Android TV recording from the current build showing the row cover retained during a delayed load and the detail poster appearing after success; include a failed-load case if retaining that behavior claim.
Suggested evidence: one recording of that transition on Android TV, labeled with the device and current build/commit.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
…ds-framed-hero
Main's #1015 conflicts in TvRootHeroBackdrop.kt. Take its grain rule (white
grain only on tint-only and empty washes below Android 9; the shader dithers
the wash from Android 9), dropping this branch's grain behind art.
#1015 also paints the wash over the art box once above every art slot, which
would fade the framed cover's leading and bottom edges, shadow and glow. Draw
corner art and framed covers in two crossfades with the same timing, the
corner art under the fade and the cover above it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reason will be displayed to describe this comment to others. Learn more.
Maintainer review, continued on efb0e55b5. Main has moved, and #1015 ("stop the hero backdrop banding on dark art") now conflicts with this branch in TvRootHeroBackdrop.kt. Merging it as it stands would break the framed cover, as described inline. I'm handling both points below in the merge commit on this branch, so there's no need to change anything yourself. The updated summary follows after the live check on Android TV.
The reason will be displayed to describe this comment to others. Learn more.
Revalidate cover readiness when revisiting an item
After browsing enough artwork to evict a detail poster from Coil's memory cache, returning to that item still treats its URL as loaded forever. pendingCover consequently skips preloading, and backdropContent immediately selects the detail poster even though it must be decoded or fetched again. Since FramedCover does not retain the card image while loading, the hero shows its ThumbHash or placeholder during that request, undoing the fallback protection added here. Track readiness for the current cover presentation, or verify that the decoded image is still available before bypassing the preload.
The reason will be displayed to describe this comment to others. Learn more.
Not changing this. It's the case Kody raised on the same set, answered in that thread on 11-19. The gate exists so a slow or failed load never replaces a cover already on screen. Coming back to an item after eviction is a new focus: the hero crossfades from the previous item either way, so no shown cover is replaced. If Coil dropped the bitmap, the incoming layer shows the ThumbHash while the poster decodes from disk cache, which is what a backdrop item does in the same case.
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Enable the older-TV grain fallback when artwork is visible.
When content is non-null, both hasTintOnlyWash and hasEmptyWash are false. This condition therefore excludes the new framed covers. The pre-Android 9 shader branch also skips the custom dither shader. The promised grain fallback does not run while these covers are shown. (raw.githubusercontent.com)
Include visible artwork in this condition. Keep the SDK restriction and the existing empty-wash behavior. This addresses the linked issue's requirement for a dithered wash whenever artwork is shown.
The reason will be displayed to describe this comment to others. Learn more.
This follows main on purpose. From Android 9, #1015 dithers any tinted wash in its shader, and the wash is always tinted while art shows, so #959's "dithered whenever art is shown" holds there. Below Android 9, main draws no grain behind backdrop art either, and a framed cover now matches that. Whether Android 7 and 8 TVs should get the grain behind all art is a maintainer decision, so I'm leaving this thread open. If the grain is added, it belongs under the art rather than over it, since this overlay now draws last and would grain the cover itself.
The reason will be displayed to describe this comment to others. Learn more.
@Quick104 You’re right: widening the current overlay condition would also add grain to the framed cover. If grain is added, it needs to sit under the artwork.
The Android 7 and 8 behavior matches main. I’ll leave thread resolution to the maintainers while they decide whether to change it.
Learnings added
Learnt from: Quick104
Repo: Silo-Server/silo-android PR: 968
File: androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvRootHeroBackdrop.kt:203-203
Timestamp: 2026-11-23T05:11:08.347Z
Learning: Within repository "Silo-Server/silo-android", only for files matching one of ["androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvRootHeroBackdrop.kt"]: In androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvRootHeroBackdrop.kt, Android 9 and later dither a non-flat wash in washShader; flat washes deliberately omit noise to avoid lifting OLED black. Below Android 9, artwork has no grain fallback, matching main; whether to add one is a maintainer decision. If it is added, do not simply widen the final DitheredWashOverlay condition: that overlay draws over the framed cover. Place grain under the artwork instead.
Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.
You are interacting with an AI system.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bugSomething isn't workingimpact: polishAnnoyance, cosmetic, or nice-to-haveneeds-reviewNeeds maintainer review to resolve uncertain classification, scope, or changed evidence.priority: P2Limited scope, workaround exists, or polishsize/XL500–999 added + deleted lines (all files); change volume, not priority.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On Android TV, audiobooks look small and soft on the Recommended page of an audiobook library and in audiobook rows on Home:
Apple TV fixed the same three problems in Silo-Server/silo-apple#1198.
Closes #959
Validation tasks: #350 (Audiobooks, Android TV) and #339 (Requests, Android TV) are still to do and will check this hero. #313 (Calendar, Android TV) and #320 (Recommendations, Android TV) are done; items without a backdrop now show a framed poster there, so re-check that after merge.
Other clients: Apple Silo-Server/silo-apple#1198 (the source); Roku N/A (audiobooks are out of scope, decision D-8 in its
docs/spec.md); Web N/A (its Recommended hero already frames the cover over a tint)Solution
tvSkylineDenseCardWidth, matching tvOSdenseCardWidth(for:)). Rows that mix shapes keep the poster width. Artwork requests are unchanged: at a 1080p UI the wider card is 264 px, which still fits the server's 300 px poster size.Modifier.blurdoes nothing below Android 12 (minSdk is 24), so the glow is blurred in software on a layer about 110 px square. It reuses the 128 px decode the ambient tint sampler already requests.Validation
1740994f7against mainbbbfdeeb5. Both builds were signed in to one sandbox built from Silo-Server/silo-server main, with the same profile; the PR build was installed over main's, keeping its data. The sandbox has an eight-book audiobook library of generated test art, with the title at the top and the author at the bottom, so a cropped hero is easy to see. Show Audiobooks is on in both builds.:androidTvApp:testDebugUnitTeston1740994f7: 1421 tests, 0 failures, including the newTvHeroCoverTest(6 tests: which items frame a cover and at which shape, the detail-poster upgrade, and the shown cover staying until that poster has loaded). The new tests use APIs this branch adds, so they don't compile on main.:androidTvApp:assembleDebugand:androidTvApp:lintDebugsucceed.Phone, tablet and foldable are unaffected: every changed file is in the Android TV app, and the phone app has its own hero and card code.
Evidence: https://evidence.siloserver.org/r/silo-android/pr-968/
Risks
Follow-ups
None.
AI disclosure
gpt-6.1-soland Claudeclaude-opus-5-5plan reviewsclaude-opus-5-5;claude-fable-5-2for the review fix in67cc01f24gpt-6.1-sol, reviewed 512e198) found that the hero switched to the detail poster before that image had loaded, so a slow or failed load showed the placeholder instead of the cover already on screen.67cc01f24fixes it: the upgrade waits for a successful load. A maintainer review (claude-opus-5-5) found three more issues, fixed inefb0e55b5, and, after merging main, that fix(tv): stop the hero backdrop banding on dark art #1015's corner fade would wash out the framed cover's edges, fixed in the merge1740994f7.🤖 Generated with Claude Code
Note
Show full-size framed audiobook covers in the TV hero
FramedCoverlayer to the root hero that draws eligible poster-only artwork at full size with rounded corners, a shadow, and a blurred glow behind it, instead of cropping it as a backdrop (TvRootHeroBackdrop.kt)SectionItem.heroCoverAspect: items with a backdrop or no poster, episodes, and episode stills are excluded; audiobooks get a square aspect and other media get a 2:3 poster aspect (TvFocusMarqueeModel.kt)Macroscope summarized 1740994.