Skip to content

fix(setup): name the detected host when Hopper setup does not apply - #10313

Closed
liziye627-design wants to merge 4 commits into
morluto:mainfrom
liziye627-design:fix/8500-unsupported-hopper-host
Closed

liziye627-design wants to merge 4 commits into
morluto:mainfrom
liziye627-design:fix/8500-unsupported-hopper-host

Conversation

@liziye627-design

@liziye627-design liziye627-design commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

��## Summary

rea setup already 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 x64 before that sentence. Ubuntu 24.04 on arm64 reports ubuntu 24.04, deb packages on arm64. If os-release cannot 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

parseLinuxDistribution keeps 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 returns unsupported_host and 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

  • Semantic owner and earliest changed stage: Linux distribution classification in parseLinuxDistribution; setup planning and the Linux Hopper install failure projection consume it. No superseded path.
  • Contribution scope fit and linked maintainer decision: not applicable.
  • CLI and MCP/tool-catalog contract: rea setup remediation text on an unsupported Linux host. No tool schema change.
  • Provider, bridge, target-format, or platform compatibility: Hopper remains uninstalled on hosts outside the tested list. macOS and Windows refusals are unchanged.
  • Evidence, artifact, provenance, or reconstruction contract: none.
  • Target selection, authority, upstream behavior, and cleanup details (if applicable): not applicable.
  • Generated metadata (docs/public/product-catalog.json), package, or installation impact: none.

Expected effects (check known effects; use documentation-only on its own).

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests added or updated: src/application/LinuxHopper.test.ts checks 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.ts checks setup results for Debian, Ubuntu arm64, and an unreadable distribution. src/application/SetupInstallFailure.test.ts checks the Linux projection against unsupportedLinuxHopperSetupRemediation and independent host facts.
  • Base reproduction or other evidence: source inspection of hopperInstallEligibility. The previous sentence named only the supported alternatives.
  • User-visible CLI/MCP output (if applicable): setup remediation now includes the detected distribution, version, package family, and architecture when those facts were read � for example, on Bazzite 43 x64: 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.
  • Remaining proof gaps: no Bazzite or other Linux host was executed, and local Windows npm pack --dry-run stops at scripts/prepack.mjs without built local native/windows/build/ artifacts (covered by CI Build 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:

  • Observed, derived, and inferred claims remain distinguishable.
  • Artifact identity, source provenance, and failed attempts remain preserved.
  • Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.

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 --noEmit and node 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, and npx oxfmt --check on the 7 changed files � passed (0 lint errors).

Compatibility, safety, and release

  • Breaking changes or migration steps: none. The refusal code stays unsupported_host. The Linux remediation text gains a detected-host prefix.
  • Real Hopper/Ghidra, browser, or OS coverage: not run. This machine is Windows, and no Hopper package was downloaded.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: the message uses distribution id, version, package family, and architecture already classified for setup. It does not add an install path.

Author readiness

Human owner: @liziye627-design

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-25T05:21:14.377476Z
We couldn’t complete this review. Comment @codex review to try again.
14d93bb New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; the new text preserves the existing unsupported-host boundary.

Summary

The PR adds detected Linux host details to Hopper setup refusals.

  • Linux Hopper refusals name the detected host and keep the same supported-host list.

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

Comment thread src/application/LinuxHopper.test.ts Resolved
@morluto morluto added area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working provider: hopper Analysis provider / engine: hopper labels Nov 22, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@liziye627-design

Copy link
Copy Markdown
Contributor Author

Superseded by #14449 on a clean single-commit branch over current main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working provider: hopper Analysis provider / engine: hopper

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants