Repository navigation
Merge upstream/main (through #1345) - #17
Merged
Merged
Conversation
Adds docs/release-notes/v0.10.0.md and the authored half of docs/release-audits/v0.10.0.md for the 273 commits since v0.9.0, ahead of release candidate 1. The audit records that no device suite was run for this release; the generated half is filled in by the release run. The README's action-required check found network egress and out-of-directory writes (Continue Watching cover-art request, the HUD gallery host, extra opt-in crash-report fields, the HUD package store); each is disclosed as a Changed entry. A pr-reviewer pass found one blocker, five majors and ten minors, all fixed here.
…play (plxnative#1332) A webOS 5.6.2 tester turned on Settings > Playback engine > Experimental and every play went to Standard, with nothing in the event log to say why: quality Auto on a link the app reads as remote never offers the original to the URI engine. Other refusals were just as silent. The URI original qualification now names its reason. `uri_preflight.rs` gains `UriDecline`, carried in `Verdict::Unknown` and `Verdict::Refused`; the refusal chain, the qualifier's checks and the post-certificate checks each name the first one that said no. The certificate check splits into a general mismatch, a selected subtitle the certificate does not carry, and missing display evidence. The route plan records the reason, including the guards that skip qualification (no port, the original not offered, an unresolved track pick), and logs one line per resolve, `uri: original declined (<reason>)`, only for a viewer who chose Experimental. Each phrase says what to change, e.g. "quality Auto on a link that is not local; set quality to Original". Diagnostics only: every input reaches the same Known, Unknown or Refused outcome as before, and nothing routes on the reason. Tests pin each branch's reason and the plan-level Auto-on-remote case. `docs/uri-mode.md` lists the reasons in check order with the tester's remedy; `docs/playback-settings.md` says the event log names it. Part of the webOS 5+ URI work tracked in plxnative#1064; does not close it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lxnative#1333) Play Version clears src_kbps for a picked version because that value describes the default one, but build_stream only took the fetched item's bitrate for the automatic choice. A version picked by hand therefore planned with src_kbps 0, which fails closed: with a quality rung selected, it re-encoded even when the picked version fit the rung. Every fetched version now takes its own PlayingItem::bitrate; a fetch failure still yields 0 and fails closed as before. Two regression tests pin it.
…rs (plxnative#1337) tools/abr-calibrate-plant.py takes its default fixture pack from $FIXTURES_OUT/pipeline, falling back to ~/plxnative-fixtures/pipeline, the same root every other fixture reader (mock_fps, serve_fixtures, make_fixtures) already honours. It was the one reader that hard-coded the path, so the fixtures could not be moved off the internal disk with one variable. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ative#1338) The disk tooling never sizes, walks or probes a build tree or lane worktree on another volume than the build's. On 2026-11-09 the build-entry preflight sat 20-35 min in IO wait because collect() measured and git-queried every tree on a slow USB disk holding 21 lane worktrees before never() rejected them as "on another volume" - and deleting there frees nothing on the build volume. - disk-budget.py collect(): a tree on another device is listed with no measure, newest_mtime, tracked_under, cargo-lock probe or lane git facts; a lane whose worktree is on another device gets no git status/merged check. Its make-check lock (a local flock) is still probed. make disk shows such trees as "other volume (not sized)". - build-gc.sh: --auto's worktrees pass skips lanes on another volume (by hand --worktrees still removes them); --evict treats a lane checkout on another volume as active instead of walking it; make disk prints "-" instead of running du for them. New path_dev/on_other_volume helpers (GNU stat -c first, BSD stat -f). - make disk on macOS says whether the hourly agent com.plxnative.build-gc is loaded, and names make disk-watch if not: an unloaded agent left 19 GiB unreclaimed for ~19 h unnoticed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ssure (plxnative#1336) tools/build-gc.sh --auto ages out FFmpeg cache keys unused for PLX_GC_AUTO_CACHE_DAYS days (default 7), only while free space is below the comfort line, as a stage between the worktrees pass and the planner pass. Before, only the manual --cache pruned that cache, at 30 days; on 2026-11-11 11 of 15 keys (~1.4 GiB) were older than a week, each for a superseded FFmpeg version, flag set or toolchain. - New --ffmpeg-cache mode: the FFmpeg half of --cache, without the cargo-seed prune; --auto uses it, so --auto never touches the seed (pinned by a test). --cache and --all still do both. - stale_cache_trees ages by minutes (find -mmin), so a key goes once it is more than N x 24 h unused; -mtime +N kept keys up to a day longer. A non-numeric threshold still selects nothing. - A held FFmpeg build lock makes the stage refuse, as --cache does; the next --auto tick retries. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… disk (plxnative#1340) An opt-in cold store: under disk pressure, idle cargo build trees are copied to a slow external disk instead of the disk-budget ladder deleting them. Off unless a per-user `cold-store` file (root=...) sits in the tv-host config dir; unconfigured, every entry point is a no-op and --auto prints and logs exactly what it did before (golden test). It also disarms itself with a reason when ditto is missing, the root is unmounted, on the build volume, low on space, or a probe write fails. - tools/cold-store.py: config, SSD index, park (rename to SSD staging, ditto to <root>/trees/<id>.partial, verify count and bytes, record, rename into place, one sync + F_FULLFSYNC, index, remove staging; any failure puts the tree back), unpark (not yet called from builds), prune, recover, and a CLI. - --auto gains a park stage after --orphans, active only between the 20 GiB comfort line and park_below_gib (40): below comfort the ladder deletes as before, since a copy to a spinning disk takes minutes and a preflight waits 60 s. Candidates are the ladder's own idle whole-tree rungs; the auto lock is released between trees and the pass, recover and prune yield to a waiting preflight. build-gc.sh --park [-n] runs it by hand; make disk reports cold-store state. Measured on the owner's Mac: copy-back 0.18-0.59x a cold rebuild, and cargo sees every unit Fresh after a ditto round trip, hard links intact. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ative#1341) When a build's own cargo tree is absent and the opt-in cold store (plxnative#1340) indexes a parked copy of it, the disk preflight copies it back before cargo runs. The check is first in `disk-budget.py preflight`, ahead of the PLX_DISK_BUDGET_DONE and PLX_MIN_FREE_MB=0 exits, so make check/install/build-bench children are covered; the fast path stays import-free (one lstat, ~0.5 ms). - Off or unmounted cold store: one line, no lock wait. - Under build-gc's lock the preflight only claims the copy (atomic rename of the index entry to .unparking.<pid>); the copy runs unlocked, so two trees restore in parallel; a second build of the same tree is told it is being restored and rebuilds; a dead claimer's entry is put back by the next claim or recover. - Restores only when size / the slower of measured and floor rate beats the tree's rebuild time and free space after the copy, counting copies in flight, stays above the comfort line. - One deadline covers the unpark wait and the ordinary lock wait; any failure prints one line and the build goes on as if the cold store were off. Measured on the owner's Mac: a parked 208.7 MiB target came back in 0.3 s and cargo reported Fresh 114, Dirty 0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
On a remote connection with Automatic quality, a remux Original (audio the set can't decode, such as DTS or TrueHD) started on 720 kbps HLS even when the network had room for the source. The remote Original preflight samples the playback's own URL with a finite `Range: bytes=0-M`. For a remux that URL is PMS's transcoder `start.mkv`, which answers every Range with a 200, and `CurlSource::validate` refused anything but a 206 at the requested offset (`OpenErr::RangeIgnored`), so the sample never started. That refusal protects the demuxer from reading the wrong offset. The probe starts at zero and only counts bytes, so a 200 is exactly the prefix it asked for. `CurlSource` now records whether an attempt is the probe's finite form, and `validate` accepts a 200 for that form at offset 0 only. Every other Range answered 200 is still refused and poisons the source, and a 206 must still name the requested start in Content-Range. A regression test samples a fixture server that ignores Range; it failed with `Open(RangeIgnored)` before the fix. `docs/adaptive-playback.md` no longer says the probe needs a 206. Closes plxnative#1329 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, Library restore (plxnative#1335) ## Summary Fixes from the owner's test of release candidate 1 on the television. Four lanes, merged here (each lane's branch is on origin): `lane-home-hero`, `lane-settings`, `lane-player-hud`, `lane-library-collections`. 1. **Home hero pager** now draws per page and slides with the page it belongs to. 2. **Home hero line**: every movie, show and episode reads the identity row (type, year, length, genres, rating) whatever its watch state; only seasons and collections keep the premise. 3. **Play pill tint** follows the arriving page and dissolves instead of popping (new `HeroTint`). 4. **Home background flicker**: the wash keys to the card focus has rested on for 200 ms, not every card a run of taps crosses. 5. **Settings > Favorite libraries preview** shows on entry (the fan reads the same wide cache the Under posters picture reads, and asks for posters while focused). 6. **Player HUD root page previews the focused installed HUD**; **Estimated end time** is offered and applied only when the HUD in use declares the playbar end-time lane. 7. **Managed profile auto-skip**: a managed Home profile now also takes its Home administrator's Plex Pass for Skip intros / Skip credits (owner decision 2026-11-11). Only a read of the administrator's plex.tv feature list uses the account token (identity proved by `/api/v2/user`; the member's own grants are never replaced); no write path changed. `docs/pms-api.md` and `docs/playback-settings.md` say so. A real managed account's answers were never observed, and a full (non-managed) Home member also takes the administrator's Pass because the roster has no `restricted` flag. An event-log line records each read's outcome. 8. **Seek glyph**: a LIVE scrub keeps its `<<`/`>>`; from the commit until a seek lands the transport shows the loading sign (owner decision 2026-11-11), then the normal play/pause state mark. FF/REW taps and chapter hops commit immediately, so they read the loading sign too. 9. **Library restored onto Collections or Recommended**: focus now seats on the first tile instead of staying on the top bar. The layout pop and the old-layout flash on leaving did **not** reproduce in the host rigs and are not changed. ## Verification Run on the combined tree: `plx_screens` 2132 passed, `plx_appkit` 946 passed, app hostsim 1525 passed, `make check-nodef` clean. Each lane observed its regression tests fail on the old behaviour and pass on the fix (items 1, 2, 4, 5, 6, 8, 9b; item 3's tests cover new functions and could not fail on the old code; item 7 is a diagnostic). Not run: `make check` and `make check-replay` (CI gates this PR; the Home lane expects the replay anchors may need re-recording). Nothing was seen on the television or the simulator (no window server in the lanes). Items 3, 4, 9a and 9c need the TV. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
…ot dropped as stale (plxnative#1343) A 4K HEVC MKV switched mid-film to its TrueHD 7.1 track, which the set cannot decode, so PMS served a remux (video copied, audio converted to E-AC-3, 4096-byte packets every 32 ms). The sound disappeared, came back with glitches and disappeared again; video was perfect. The server's stream was continuous (6384 audio packets over 204 s, no gap over 50 ms), but on the TV `feed a#400` sat at 12.85 s and `feed a#600` at 94.7 s: about 75 s of audio was discarded inside the app, without counting or logging it. The drop was the audio lane's stale-ahead guard (`AUDIO_STALE_AHEAD_NS`, 5 s), which measured each AU against `max_fed_video_pts`. That only advances when the video sink accepts a frame. While the sink answers BufferFull the demuxer keeps reading, and a full 10 MiB video queue is 4 to 6.6 s of this remux, so the interleaved audio was past the bound and dropped. The stale check runs before the feed-ahead throttle, so the throttle never held it. The guard now applies only until audio has been accepted since the open or seek, the window it exists for: stale pre-seek audio sits at the head of the queue, in front of the new timeline's first AU. Afterwards audio past the fed video is paced by the throttle, or by the sink's BufferFull while a prime hold or an unknown presentation lifts it. Measuring against the demuxer's reach was rejected because it widens the guard by the read-ahead (10 MiB of a 3 Mbit/s stream is 28 s), letting a short backward seek's stale audio through. Drops are counted (`Engine::audio_stale_dropped`) and logged as `feed: audio dropped as stale ahead: ...`, first and every 100th. Hostsim tests park the video lane with audio 5.5 s past it queued: the AUs reach the sink while the clock primes and are held, not dropped, under the throttle; both failed on the old code. A seek's stale audio is still dropped and counted. Retested on the TV with the same TrueHD switch: audio checkpoints 6.4 s apart, no drops. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tion (plxnative#1342) ## What Subtitles can now be yellow, as asked in discussion plxnative#1193 (readability on bright scenes). A subtitle colour pick already existed (`SubtitleTone`: White plus five grays, per profile) but only in the player's Subtitles menu. This adds **Yellow** to that ladder (second, after White) and a **Settings > Audio & subtitles > Look > Subtitle color** row under Position, over the same pref. - Text subtitles (SubRip, WebVTT and the other text codecs, embedded or sidecar): Yellow becomes the primary and secondary colour of the synthesized ASS header on all nine alignment styles. A cue's own inline `{\c}` colours still win. Outline and shadow are unchanged. White is byte-for-byte the previous header. - The client's own drawn caption text (fault message, sidecar notice) takes the palette colour; its dark outline stays. - Authored ASS/SSA and PGS/VobSub picture subtitles are NOT recoloured: a multiplicative yellow tint would turn blue and cyan text near-black and collapse SDH speaker colours. The grays still dim them as before. - Restyle: `TextStyle` gains `tone`; grays normalize to White so switching among grays never re-synthesizes a track, while a colour change re-synthesizes once. - One palette table (`SubtitleTone::text_rgb8`); a new colour is one variant, one `LADDER` entry, one arm, one `theme::SUBTITLE_INKS` entry. The colour code lives in plex because media cannot see ui (a stated departure from `ui/CLAUDE.md` rule 1; the layer check is green). - Persisted by serde name (`"yellow"`); a build from before this reads the unknown value as the install value, then white. - Strings for 12 locales are machine-drafted (Belarusian words checked on skarnik.by). ## Verification Crate suites for plex, media (plain and hostsim), appkit, screens and the application crate pass; `make check-nodef`, `ci/check-localization.py` and `ci/check-module-layers.py` are green. The new tests include a mutation run (old header colour and non-settings flag restored: 2 of the new tests fail). Not verified: the real-libass pixel test is `#[ignore]` (needs the host libass artifact); nothing was seen on the TV or simulator, so the panel and HDR look of `#ffe61a` and its outline contrast are unchecked.
… the countdown, hero title gap (plxnative#1345) ## What The second release candidate's fixes, from the owner's on-TV pass over the first candidate and plxnative#1342's Yellow subtitles. **Subtitle colour (Yellow) now reaches the tracks it ignored** - A SubRip `<font color="#ffffff">` tag no longer beats the pick: an explicit white is the default ink, so Yellow shows. - An authored ASS/SSA track (including the embedded ASS track many "SRT" files carry in Plex) takes the pick: every style whose primary (and secondary) colour is pure white is rewritten, and any other colour stays as authored. This reverses plxnative#1342's "ASS is never recoloured" for white-primary styles. Known cost: white-drawn signs and typesetting take the colour too. - Colours are read the way libass reads them (`&h`/`0x` hex, decimal otherwise; `$00FFFFFF` is not white). Edits are spliced in offset order, so a reordered `Format:` line cannot panic. - The authored recolour is built on the existing restyle worker, never under the frame-thread lock; the old look stays up until the new one publishes. - The Color picker dims a colour the active subtitle cannot take (picture subtitles: only grays) and says why, with three notes (image, styled, fixed). The fact is a value the player publishes on the session (`PlayerReadout::subtitle_takes_colour`), not a registry read from appkit; `ci/check-deps.sh`'s globals rule now also names the four reader spellings, so it only tightens. **Timed skip prompts (Skip intro / Next episode)** - The filled button is always the action the countdown performs; Automatic shows an unfilled Watch (cancel) beside the filled Skip pair; initial focus starts on the filled action for both modes. - Auto-skip rows no longer appear and disappear on the Settings screen: marker-access grants are `settled` and stand through a TTL refresh or a failed re-read. **Home hero** - A title set in type (no logo art) ends its painted box on the foot like a logo, so the gap to the metadata line follows one rule. The three buttons' spacing was measured equal in layout and is left alone. **Prose**: the docs, comments, release note and audit statements these changes made false (`docs/ass-subtitles.md`, `playback-settings.md`, `player-submenus.md`, `sans-io.md`, `sans-io-guide.md`, `release-notes/v0.10.0.md`, `release-audits/v0.10.0.md`, and others). Strings for 12 locales are machine-drafted (Belarusian checked on skarnik.by; the French and Belarusian notes want a native read). ## Verification Crate suites: plx_media 2010 passed, plx_appkit 952, plx_screens 2137, application hostsim 1526, plx_media hostsim 2290; the real-libass `native_yellow` tests (4, ignored by default) pass; the two-line fit gate passes for every new string. `make check-nodef`, `ci/check-deps.sh`, `ci/check-ledger-ratchet.py` (no ledger count rose), `ci/check-localization.py` and `ci/check-module-layers.py` are green. The reordered-column and hostile-header tests were written first and failed against the old splice (panic at `ass_ink.rs:143`). Independent `pr-reviewer` pass on the combined diff: round 1 and round 2 findings fixed (3 major, 3 minor in round 2). Not verified: yellow on the owner's embedded-ASS file, the dimmed-rung look, the text-title hero and the skip prompts on the TV in a release build; managed-profile Plex Pass (never seen on a real managed account); `make check-replay` (the simulator cannot start in a lane; CI gates it); full `make check` (CI runs it). Yellow in HDR is unchecked. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
# Conflicts: # rust-modules/media/src/route/plan.rs # rust-modules/net/src/curlio.rs # rust-modules/screens/src/family.rs # rust-modules/screens/src/preferences.rs # rust-modules/screens/src/preferences/picker.rs # rust-modules/screens/src/preferences_text_fit_tests.rs # rust-modules/screens/src/settings_nav_structure_tests.rs # rust-modules/src/app/preferences.rs
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Merges upstream main through plxnative#1345 (13 commits: v0.10.0 RC fixes, the Yellow subtitle colour row, the throughput probe's 200-from-zero, disk tooling).
Conflicts resolved, all unions: FinNative's Convert audio setting (
AudioConversionpicker, value, label, cells) kept beside upstream's new Subtitle colour (SubtitleTone) inplan.rs,family.rs,preferences.rs,picker.rs, the two settings tests andapp/preferences.rs;curlio.rskeeps both the Cloudflare range-retry test and upstream's probe test.Local:
plx_jellyfin147 passed,plx_screens --features finnative2136 passed,plx_plexprefs 97 passed, app cratecargo check --lib --testsclean, ledger pins match.Generated by Claude Code