Repository navigation
fix(setup): name the detected host when Hopper setup does not apply - #14449
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] The PR appears safe to merge; it improves refusal messages without expanding installer support. SummaryUnsupported Linux Hopper setup now names the detected distribution, version, package family, and architecture before listing supported hosts.
No actionable issues were found. Tests were inspected, not run. Whether this PR has been superseded could not be checked because GitHub access required authentication. Acknowledged scope: Reviews (1) · Last reviewed commit: "fix(setup): name the detected host when ..." · Reviewed by Greptile |
546b08e to
d824a0a
Compare
d824a0a to
b545c33
Compare
|
thanks! merged after a clean review and 125 passing targeted tests. setup now names the rejected host without changing eligibility. |
* commit '4ccc685dd5ed028bc625fdd8760539ce5a492d8d': (228 commits) test(asar): verify cleanup on the original file handle (morluto#15155) fix(ubi): bound smaller-grid probe memoization (morluto#15168) fix(artifacts): distinguish content from containment changes (morluto#15165) fix(bflt): retain complete text when data is truncated (morluto#15160) refactor(domain): reuse graph projection and validation helpers (morluto#15173) fix(iso9660): read a directory record's data length from its little-endian half (morluto#14801) test(ghidra): wait for each fixture spawn before expiring startup (morluto#15172) test(beam): reuse the CLI Evidence reader (morluto#15171) test(oci): share descriptor budget refusal assertions (morluto#15159) refactor(audit): share byte framing for offline audit logs (morluto#15162) refactor(evidence): reuse observed file reports for binary metadata (morluto#15161) fix(doctor): omit package-runner cache shims from installations (morluto#15059) refactor(packages): share package inspection budget contracts (morluto#15158) refactor(desktop): share completed command answer recovery (morluto#15156) refactor(views): share page byte reservations (morluto#15152) refactor(artifacts): share GPU and media asset layout rules (morluto#15150) fix(setup): name the detected host when Hopper setup does not apply (morluto#14449) fix(iso9660): read a directory record whose identifier padding byte is not zero (morluto#15020) fix(windows): report the ACE count a private DACL check observed (morluto#14450) fix(artifacts): read Ogg Opus channel mapping tables (morluto#14975) ...
* commit 'e18ed55bac14191010efe91ba61489cab1d2ba55': (137 commits) fix(artifacts): report macOS package bundle release versions (morluto#14860) test(asar): verify cleanup on the original file handle (morluto#15155) fix(ubi): bound smaller-grid probe memoization (morluto#15168) fix(artifacts): distinguish content from containment changes (morluto#15165) fix(bflt): retain complete text when data is truncated (morluto#15160) refactor(domain): reuse graph projection and validation helpers (morluto#15173) fix(iso9660): read a directory record's data length from its little-endian half (morluto#14801) test(ghidra): wait for each fixture spawn before expiring startup (morluto#15172) test(beam): reuse the CLI Evidence reader (morluto#15171) test(oci): share descriptor budget refusal assertions (morluto#15159) refactor(audit): share byte framing for offline audit logs (morluto#15162) refactor(evidence): reuse observed file reports for binary metadata (morluto#15161) fix(doctor): omit package-runner cache shims from installations (morluto#15059) refactor(packages): share package inspection budget contracts (morluto#15158) refactor(desktop): share completed command answer recovery (morluto#15156) refactor(views): share page byte reservations (morluto#15152) refactor(artifacts): share GPU and media asset layout rules (morluto#15150) fix(setup): name the detected host when Hopper setup does not apply (morluto#14449) fix(iso9660): read a directory record whose identifier padding byte is not zero (morluto#15020) fix(windows): report the ACE count a private DACL check observed (morluto#14450) ...
* commit '76cb6645be39cf3844f7a8bb4568b02d8a713595': (95 commits) fix(macos-pkg): retain cpio hard-link contents (morluto#15157) fix(artifacts): report macOS package bundle release versions (morluto#14860) test(asar): verify cleanup on the original file handle (morluto#15155) fix(ubi): bound smaller-grid probe memoization (morluto#15168) fix(artifacts): distinguish content from containment changes (morluto#15165) fix(bflt): retain complete text when data is truncated (morluto#15160) refactor(domain): reuse graph projection and validation helpers (morluto#15173) fix(iso9660): read a directory record's data length from its little-endian half (morluto#14801) test(ghidra): wait for each fixture spawn before expiring startup (morluto#15172) test(beam): reuse the CLI Evidence reader (morluto#15171) test(oci): share descriptor budget refusal assertions (morluto#15159) refactor(audit): share byte framing for offline audit logs (morluto#15162) refactor(evidence): reuse observed file reports for binary metadata (morluto#15161) fix(doctor): omit package-runner cache shims from installations (morluto#15059) refactor(packages): share package inspection budget contracts (morluto#15158) refactor(desktop): share completed command answer recovery (morluto#15156) refactor(views): share page byte reservations (morluto#15152) refactor(artifacts): share GPU and media asset layout rules (morluto#15150) fix(setup): name the detected host when Hopper setup does not apply (morluto#14449) fix(iso9660): read a directory record whose identifier padding byte is not zero (morluto#15020) ...
* commit '6c7dffc59b970fcfae023af3171d92ee0ac50f94': (137 commits) fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949) fix(macos-pkg): retain cpio hard-link contents (morluto#15157) fix(artifacts): report macOS package bundle release versions (morluto#14860) test(asar): verify cleanup on the original file handle (morluto#15155) fix(ubi): bound smaller-grid probe memoization (morluto#15168) fix(artifacts): distinguish content from containment changes (morluto#15165) fix(bflt): retain complete text when data is truncated (morluto#15160) refactor(domain): reuse graph projection and validation helpers (morluto#15173) fix(iso9660): read a directory record's data length from its little-endian half (morluto#14801) test(ghidra): wait for each fixture spawn before expiring startup (morluto#15172) test(beam): reuse the CLI Evidence reader (morluto#15171) test(oci): share descriptor budget refusal assertions (morluto#15159) refactor(audit): share byte framing for offline audit logs (morluto#15162) refactor(evidence): reuse observed file reports for binary metadata (morluto#15161) fix(doctor): omit package-runner cache shims from installations (morluto#15059) refactor(packages): share package inspection budget contracts (morluto#15158) refactor(desktop): share completed command answer recovery (morluto#15156) refactor(views): share page byte reservations (morluto#15152) refactor(artifacts): share GPU and media asset layout rules (morluto#15150) fix(setup): name the detected host when Hopper setup does not apply (morluto#14449) ...
Summary
rea setupalready listed the Linux hosts that can install Hopper, but the result did not say which distribution and architecture were detected. On a host outside that list, such as Bazzite, the skipped install looked like a generic host refusal.This covers the setup-result explanation in #8500 (superseding #10313 with a clean single-commit branch on current
main). It does not verify a container workflow, so it does not close the issue.Problem and expected behavior
Requesting Hopper setup on a Linux host outside the tested list returned only:
Automated Hopper setup requires an x86_64 host running Ubuntu 24.04+, Fedora 41+, Nobara 44+, Arch Linux, CachyOS, or Omarchy; configure an existing supported provider instead.The same refusal now starts with the detected host. A Bazzite 43 x64 host reports
bazzite 43, rpm packages on x64before that sentence. Ubuntu 24.04 on arm64 reportsubuntu 24.04, deb packages on arm64. Ifos-releasecannot be read, the result says the distribution could not be read. The supported-host list is unchanged, and Bazzite is not added to the installer.Change and scope
parseLinuxDistributionkeeps the architecture it already used to classify the pinned package. Setup planning and the Linux install failure projection both use that classification for the refusal. The installer still returnsunsupported_hostand does not download or install a package.Follow the contribution scope.
Not applicable. This stays inside the existing unsupported-host boundary. No new provider, target execution, injection, mutation, or protection recovery.
Intentionally not included: a tested Ubuntu container workflow on Bazzite, and any change that would treat Bazzite as Fedora for
dnf install.Contract and boundary impact
parseLinuxDistribution; setup planning and the Linux Hopper install failure projection consume it. No superseded path.rea setupremediation text on an unsupported Linux host. No tool schema change.docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
src/application/LinuxHopper.test.tschecks detected host facts,LINUX_HOPPER_SETUP_HOSTS, and recovery guidance for Bazzite, Ubuntu arm64, NixOS (omitted version/family), and an unreadable distribution without freezing full explanatory paragraphs; it also checks that an unsupported install keeps the detected distribution.src/application/Setup.recovery.test.tschecks setup results for Debian, Ubuntu arm64, and an unreadable distribution.src/application/SetupInstallFailure.test.tschecks the Linux projection againstunsupportedLinuxHopperSetupRemediationand independent host facts.hopperInstallEligibility. The previous sentence named only the supported alternatives.This host reports bazzite 43, rpm packages on x64. Automated Hopper setup requires an x86_64 host running Ubuntu 24.04+, Fedora 41+, Nobara 44+, Arch Linux, CachyOS, or Omarchy; configure an existing supported provider instead.npm pack --dry-runstops atscripts/prepack.mjswithout built localnative/windows/build/artifacts (covered by CIBuild package). The container workflow in [Feature] Explain skipped Hopper setup and verify container recovery on Bazzite #8500 is still unverified.Boundary and lifecycle regressions: not applicable. This changes refusal text before any download or package-manager command.
For evidence-bearing changes:
Validation performed
npx vitest run src/application/LinuxHopper.test.ts src/application/Setup.recovery.test.ts src/application/SetupInstallFailure.test.ts— 3 files, 125 tests passed.node scripts/run-typescript.mjs --noEmitandnode scripts/run-typescript.mjs --noEmit -p tsconfig.scripts.json— passed.npx oxlint -c .oxlintrc.json --quiet,npm run verify:architecture-guards,npm run verify:module-boundaries, andnpx oxfmt --checkon the 7 changed files — passed (0 errors).Compatibility, safety, and release
unsupported_host. The Linux remediation text gains a detected-host prefix.Author readiness
Human owner: @liziye627-design
Author checklist (completed by the PR author before requesting review)
type(scope): outcome.REA_runtime setting with a default, floor, and maximum, unless a fixed ceiling has a stated reason. See Adding a runtime setting.