Repository navigation
fix(setup): name the detected host when Hopper setup does not apply - #10313
liziye627-design wants to merge 4 commits into
Conversation
Callers outside the tested Linux list only saw the supported alternatives, so a skipped Hopper install did not say which distribution and architecture were detected. Co-authored-by: Cursor <[email protected]>
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. |
[Low impact] The PR appears safe to merge; the new text preserves the existing unsupported-host boundary. SummaryThe PR adds detected Linux host details to Hopper setup refusals.
No new actionable issues were found. The previous unnumbered wording-test finding is fixed. No mounted-rule violations were found. Review used the full PR changes because the previous and current commits have different merge bases with the supplied target commit. Tests were not rerun. GitHub access required authentication, so remote supersession status could not be checked. Reviews (6) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Superseded by #14449 on a clean single-commit branch over current main. |
��## 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. 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.Contribution scope fit: 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).
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.npm run lint,npm run verify:architecture-guards,node scripts/generate-package-metadata.mjs --check, andnpx oxfmt --checkon the 7 changed files � passed (0 lint errors).Compatibility, safety, and release
unsupported_host. The Linux remediation text gains a detected-host prefix.Author readiness
Human owner: @liziye627-design
Before merge
type(scope): outcome.