# Device regression review - 2026-10-23 For the 2026-10-26 codec/HDR sweep and its native-versus-converted playback findings, see [Dedicated playback validation](playback-validation-2026-10-26.md). It includes confirmed Dolby Vision/HDR10/HLG signaling, audio output limits, the TCL HDMI capture limitation, and the restored HDR settings. Target: the authorized onn at `192.168.50.195:5555`, package `tv.kaleido.app`. Other applications and the launcher were not modified. Screenshots, traces, UI dumps and server-specific logs stay in ignored `evidence/private/`. ## 2026-10-27 audit fixes, quick actions, extras, voice search and new settings (0.2.0) Addresses the findings in [the 0.1.11 audit](audit-2026-10-27.md). - Search had no remote path from the text field to its results and was untested. Down, Right-at-end and the keyboard's Search action now leave the field; results are grouped rows (Movies, TV shows, Seasons, Collections, Episodes, People). `verify_ui.py browse` gained a Search step (type, keyboard Search, open a result, Back restores it, Back returns to the previous tab). The microphone uses Google TV's `com.google.android.katniss` voice input directly; the onn otherwise shows a recognizer chooser. `ACTION_SEARCH` intents open Search with their query. - Back from Home rows now focuses the hero (Discover on Movies/TV) before exiting. Focus must move before the list scrolls, or the removed card clears it. - A `focusRestorer()` without a fallback overrode explicit `down` targets and chose the geometrically nearest card (e.g. the second cast member below Play). Rows now pass their entry card as the fallback. - Long-press OK / Menu actions use a `Modifier.Node`. A `composed {}` modifier and a per-card focus animation on every Home card measurably slowed browsing (median 25 ms / p95 38 ms); with the node and a layer-only lift, five profiled-release runs of `repro_runtime.py browse` measured median 15–17 ms and p95 29, 32, 32, 38 and 46 ms. Four met the <40 ms target; the variance is device noise around the 0.1.11 record (15 ms / 27 ms). The baseline profile now covers `ScreensKt`, the actions node, `Title` and `Media`. - Moving the skip-marker lookup to the top of the player recomposed the whole player every position tick, re-applying subtitle styling and keeping the window from going idle. It is now `derivedStateOf`. - `repro_runtime.py episode` and `credits` pressed Pause at a fixed 6–9 s after a cold launch and failed identically on 0.1.11 code; they now wait for the player's READY log like `controls`. - Verified on the onn: all `verify_ui.py browse` (8) and `player` (7) checks, `verify_settings.py`, `verify_details.py`, `verify_details_layout.py`, `verify_movie_details.py`, `repro_runtime.py sections/controls/episode/postplay/credits/browse`, 25 instrumentation tests and 14 unit tests. Hands-on: actions sheet, season episode list, episode season row, Trailer playback ending back on the movie page, View all, chapter numbering, the Version picker on the server's one two-version episode, voice input and the subtitle preview. - Not verified on a device: remote-connection quality (no remote connection here; `isLocalAddress` is unit-tested), stacked multi-part playback (no such files on the server), automatic server re-discovery after an address change, and subtitle styles over real subtitles in playback (the Settings preview uses the player's own `SubtitleView`). ## 2026-10-27 movie details and foreground library sync (0.1.11) - Movies now share TV shows' fitted poster, cinematic backdrop and safe header; related movie cards come from Plex's related metadata endpoint, below Cast. - Foreground sync checks the small `/library/sections` revision response every 15 seconds. Content changes trigger a staged Home/active-section refresh, with a 60-second fallback for servers without useful revision fields. Current filters and loaded range survive. No loading overlay is shown, and unchanged state compares equal to avoid unnecessary UI updates. Playback/background pause the loop; connection failures back off to 60 seconds. - Home feature selection keeps the same random seed for the current process, avoiding reshuffling unchanged content on each refresh. Browse rails and focus requesters use stable hub/title IDs across updates; removing a focused title selects a nearby surviving card. - Seven unit tests passed, including revision changes, unchanged-library polling, fallback refreshes and retries after failed/superseded updates. `LibrarySyncIntegrationTest` passed on the onn in 42 seconds: its local HTTP fixture changes revision/content and the real ViewModel timer updates Home and the active movie library without a restart. It substitutes only the API's in-memory endpoint, restoring it afterward; it does not import/delete media on Plex or overwrite the encrypted session. This validates the client refresh path, not a real server scan/import event. - `scripts/verify_movie_details.py` passed against real Plex content on the profiled release: safe movie header and initial action focus, related movies, opening a related title, and Back restoration. Screenshots `movie-details-0.1.11.png` and `movie-related-0.1.11.png` were inspected for fitted artwork and readable rows. Release build and lint passed; existing lint warnings remain. No playback or broad navigation sweep was needed for these changes. ## Browsing - Cold-start switching to Movies reproduced an empty page: tab loading cancelled server initialization before library discovery finished. Initialization now has its own job; section requests update their cache and visible results atomically. `scripts/repro_runtime.py sections` passes the same startup switch, TV loading and cached Movies return. - Home again has the large cinematic feature with Play/Resume, information and feature navigation. Movies has the compact focused-title preview with recent-release posters and recommendations. TV has wider next-episode thumbnails, newly added seasons and new episodes. A-Z remains a separate filtered poster grid. - All six `scripts/verify_ui.py browse` checks passed, including primary tab activation on focus, details/card focus restoration, library navigation and a live Plex PIN with cancellation preserving the connection. - Fixed card geometry and explicit row/column navigation remove horizontal vertical drift. Cached bitmap contrast reduces backdrop GPU work. API JSON parsing is off the main thread. - Profiling found substantial interpreted Compose/layout work immediately after ADB installation. Android reported `status=verify`, not profile-guided compilation. Installing the bundled baseline profile and compiling **only Kaleido** with `speed-profile` changed the measured browsing loop from p95 65 ms to 20 ms, median 14 ms, GPU p95 5 ms. Horizontal card bounds retained the same Y coordinate. This is a device stress measurement, not a guarantee of zero dropped frames. Baseline rules now also include app browsing paths. For reproducible performance checks, install the release, send `androidx.profileinstaller.action.INSTALL_PROFILE` to Kaleido's ProfileInstallReceiver, compile its package with `cmd package compile -f -m speed-profile tv.kaleido.app`, then run `scripts/repro_runtime.py browse`. Do not benchmark debug builds or compare different compilation states. Ordinary sideloads receive profile-guided optimization through Android's background dex optimization; immediate first-run measurements can therefore be slower. ## Playback and account connection - Six live Android integration tests passed: encrypted session persistence, library paging/filter/search/details/hubs, show/season/episode access, a real Plex PIN, generated JPEG previews/new seasons, and a server decision copying the supported HEVC test episode's video. - Next episode previously crashed with `Session ID must be unique`. Each controller now owns a unique Media3 session ID. The actual episode replacement loop passes and reaches the expected next title. - Plex HLS uses an absolute timeline. Removing the duplicate seek-start offset fixes resume/progress and credits-marker positions. - Natural episode completion reached post-play, waited five seconds and reached READY on the next episode. Credits skipping also opened season/related rows and its autoplay cancellation test passed. - Player tests exercised real video, scrubbing previews, audio/subtitle panels, speed changes and Direct stream selection. A separate targeted regression verifies that one Back hides controls, OK reveals them, playback auto-hides them and Back exits. Explicit preview-key handling fixes Back clearing focus before reaching the player handler. - Direct stream is the default preference. The client augments the existing Plex HEVC target instead of supplying competing transcode targets. The server can still choose conversion for media it cannot remux using the negotiated profile. Original-file and compatibility playback remain available. - The onn's ADB screen captures omit the tested HEVC picture even while Media3 reports rendered frames. The user confirmed that the actual TV displays the video. Do not treat that capture alone as a black-video failure or silently force transcoding. - Skip actions use an opaque contrast surface. The timeline draws buffered and played ranges separately and shows generated server previews or chapter artwork when available. - The release ZIP was checked for the actual private test token and `.env`: neither is present. The test connection is encrypted private device data. Settings exposes Plex account linking and server discovery. Release compilation, unit tests and lint passed with zero lint errors (existing warnings remain). Temporary debugging log tags were removed. The final release recheck after adding the app baseline rules passed again: median 15 ms, p95 27 ms, GPU p95 5 ms, stable row Y coordinates. Results remain dependent on device compilation state; some frames still miss a 60 Hz deadline under the burst test. ## Rating artwork and startup review - 2026-10-24 - Replaced the custom popcorn drawings with official red Hot / green Stale Popcornmeter vector paths. On-device screenshots show the red mark beside Andor's 89% and the green mark beside Matchbox's 49%; the existing IMDb score remains alongside them. Artwork fits a fixed square scaled with text, retaining the official aspect ratio and colors. See [brand-assets.md](brand-assets.md) for provenance and designation rules. - The 2.6-second opening assembles the six original aperture facets with light trails, a soft glow, a brief facet glint and a staggered wordmark reveal. Cover dismissal follows animation completion, then the bounded loading wait and crossfade. Android animation duration scale is honored by the animations; the device was reviewed at its existing 1.0 setting. - Built with `Build.ps1 -Release -Test`: optimized release, existing unit test and lint passed (zero errors, existing warnings/hints remain). Installed in place on the authorized onn with the existing encrypted session intact, then installed the baseline profile and compiled only Kaleido with `speed-profile`. - Recorded and inspected the actual cold-start sequence, Home and Movies/TV screenshots, and both rating states. `verify_ui.py browse` passed all six checks; `repro_runtime.py sections` passed startup tab switching, TV loading and cached Movies return. The harness now waits for the splash's accessibility description to disappear instead of counting wordmark text nodes. - Private evidence: `ratings-home.png`, `final-movies-discover.png`, `kaleido-startup-review.mp4`, and the trimmed `kaleido-intro.mp4` in ignored `evidence/private/`. No playback checks or new frame-pacing benchmark were needed for these cosmetic changes. Left the optimized release on Home. ## First published release and live updater test - 2026-10-24 Published [Kaleido 0.1.1](https://git.elijahkuntz.com/Elijah/Kaleido/releases/tag/v0.1.1), version code 2, from commit `c3917c6`. Both the main validation workflow and matching tag publication workflow passed. The locally signed distribution retains the installed application's signing certificate. Anonymous requests to the release API, APK and checksum returned HTTP 200 without redirects; the release asset and immutable tagged repository APK matched the local SHA-256 (`6f1d42ee5167dcb3743b7dafbecfed9942e496ee10b8b277ba2a3ba66c6407ba`). The packaged APK was also checked for the private Plex token, `.env` and signing keys; none were embedded. The onn stayed on version 0.1.0 / code 1 until the actual in-app installation. No ADB install of 0.1.1, downgrade, sign-out or app-data reset was used: 1. In Settings, the existing app's manual check reached the public server. Before a Forgejo release existed, it discovered 0.1.1 using `distribution/latest.json` and its immutable tag URLs. 2. After the tag workflow published the release, another manual check discovered the published release. Selecting **Download & install 0.1.1** completed download, checksum, package, increasing-version and signing-certificate validation, then opened Android's source-permission screen. 3. Enabled **Kaleido only** in Install unknown apps. Returning to Kaleido automatically opened Android's **Do you want to update this app?** confirmation. Selected **Update**, and Android reported **App installed.** 4. Selected **Open**. Live Plex Home returned with the existing encrypted connection intact. Settings retained Direct stream, 1080p / 20 Mbps conversion quality and the 80% watched threshold. 5. Android and Kaleido both reported 0.1.1 / code 2. The APK pulled from the installed package matched the published APK byte for byte. Another manual check reported **Kaleido is up to date.**, with no redundant download action. 6. Reinstalled the baseline profile and compiled only Kaleido with `speed-profile`; left the updated release on Home. For future live checks, start with an installed lower version signed by the same key, publish a genuinely higher version/code, navigate to Settings > Software updates with the D-pad, and follow the sequence above. Never clear app data to manufacture an update scenario. Android's source permission is a one-time, per-app step; the package installer still requires explicit confirmation for each update. Wait for the TV Settings source list to populate before selecting Kaleido. Private evidence remains in ignored `evidence/private/`: `updater-results.json`, `published-release.json`, `updater-before.png`, `updater-fallback-discovery.png`, `updater-release-discovery.png`, `updater-source-allowed.png`, `updater-confirmation.png`, `updater-installed.png`, `updater-after.png` and `updater-final-home.png`. This verifies manual discovery, the manifest fallback and a real release download/install. It does not independently test the six-hour automatic-check interval, permission denial/retry, or rejection of deliberately corrupted/wrong-signed APKs. ## Navigation sounds and Home scroll performance - 2026-10-24 The specific hero-to-Continue Watching movement now has a dedicated check: `scripts/profile_home.py