Skip to content

HUD plugins: install a package from an address - #1201

Merged
GLinnik21 merged 9 commits into
mainfrom
hud/pr11-address
Nov 2, 2026
Merged

GLinnik21 merged 9 commits into
mainfrom
hud/pr11-address

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Settings > Video & playback > Player HUD gains Install from address. A viewer can enter gh:owner/repo[@tag], an HTTPS URL, or an HTTP URL with a literal private IPv4 host. The fetched package goes through the existing admission and confirmation flow, with Cancel focused; installing writes it with Source::Address only after confirmation.

The parser and package store remain pure. Fetching leaves as a tagged effect and runs on the existing network runner, keeping the storage worker free. Busy requests are refused, stale answers are dropped, and Refresh displaces an outstanding fetch through the existing notice flow.

The shared public fetch sends no Plex credentials, bounds the response body, caps redirects, and retains HTTPS once a redirect upgrades to it. Failures distinguish not found, too large, connection failure, certificate verification and package admission errors. The editable address uses the shared text buffer's actual caret.

No issue tracks the HUD-plugin work; none was opened for this PR.

Local TLS regressions cover an allowed upgrade and refusal before a later plaintext hop. The television's certificate-store behavior and the new UI on the television remain unverified; the owner authorized landing with these device checks still outstanding while the shared TV is held by another lane.

Validation on committed clean head 1eae9c014:

  • ui: test result: ok. 1499 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 18.32s
  • net: test result: ok. 213 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 12.38s
  • screens: test result: ok. 1959 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 28.20s

make check-nodef, make lint, dependency and module-layer checks passed on that code commit. Final head 79e36638e changes only the cap classifications; cap and shipped-face checks pass on the committed clean tree. Independent combined-diff, documentation and source-level firmware reviews are complete. CI will run the ARM build; no television claim is made.

GLinnik21 and others added 9 commits November 2, 2026 00:19
…tall-from-address

Same headerless, redirect-following request as https_get_public, through the same
request_result_evidence entry with Some(max_body), answering the whole RequestFailure so a
caller can tell a 404, a refused connection, a certificate the television cannot verify and a
body past the bound apart. No curl option added. The "QR fetch is the only caller" doc is fixed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… a typed error per refusal

gh:owner/repo[@tag] maps to the release asset, https:// passes when well-formed and carries no
userinfo, http:// only for a literal RFC 1918 IPv4 host and is flagged a dev source. Owner, repo
and tag are restricted to GitHub's character sets and percent-encoded nowhere.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…k, and installs only on confirm

A new idle-only Fetch event pushes HudEffect::Fetch (the parsed Address, the package bound) and
Fetched answers it. The bytes go through the same Validate step a drop file does; a loadable
verdict holds them as the offer (nothing written) until InstallOffer, which writes the bytes the
viewer saw, or DeclineOffer, which writes nothing. A second request is Handled::No, a Refresh ends
a fetch in flight or an offer with NotWritten, and a late Fetched for a tag nothing awaits is
dropped. Notice::NotWritten now carries Option<Sha> (a fetch has none before it answers) and
Notice::FetchFailed names why a fetch brought back no package.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…idge carries the offer

HudEffect::Fetch runs on a small network thread (task::spawn_small, the lane the stores' fetches use), never the storage
worker, so a slow request cannot hold back a Refresh behind it. The runner maps the response onto the store's typed
FetchError (404/410, too large, certificate, unreachable) and logs one `hud:` line with the host and the code. The driver
and Bridge carry Fetch / InstallOffer / DeclineOffer; HudList publishes the offer and whether a fetch is in flight.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
One new row, "Install from address": OK raises the television keyboard (the Search page's mechanism; the surface re-addresses
the inner page's keyboard delivery), the row's detail line shows the draft, OK on the keyboard parses it and sends the
fetch, a refusal is said under the title. A package the store fetched is offered through the drop file's two-answer
prompt (name and version, where it came from, a development source for plain http, Unreviewed), Cancel focused. The row is
dimmed while a fetch runs. Every new string is in all eleven locales; the fit tests cover the row and the new lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 marked this pull request as ready for review November 2, 2026 01:57
@GLinnik21
GLinnik21 merged commit 659761b into main Nov 2, 2026
20 checks passed
@GLinnik21
GLinnik21 deleted the hud/pr11-address branch November 2, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant