Skip to content

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

Merged
vincentkoc merged 1 commit into
morluto:mainfrom
liziye627-design:fix/8500-hopper-detected-host
Nov 30, 2026
Merged

vincentkoc merged 1 commit into
morluto:mainfrom
liziye627-design:fix/8500-hopper-detected-host

Conversation

@liziye627-design

@liziye627-design liziye627-design commented Nov 25, 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 (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 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.

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

  • 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).
Unchecked items do not establish absence; leave uncertainties visible.

  • 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.
  • npx oxlint -c .oxlintrc.json --quiet, npm run verify:architecture-guards, npm run verify:module-boundaries, and npx oxfmt --check on the 7 changed files — passed (0 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.

Author checklist (completed by the PR author before requesting review)

  • 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.
  • I ran every test, build, or measurement needed to validate this change, reported a browser, GPU, or environment gap only when that runtime or hardware is unavailable, and reported the checks I ran and their results without presenting inferred correctness or speedups as measured.
  • Comments explain constraints or non-obvious decisions; task history and conversations stay out of code and docs.
  • Documentation is concise and factual, without punchy slogans or promotional language.
  • This change fixes the root cause and follows the engineering rules in AGENTS.md.
  • Formatted input is interpreted once at the owning boundary, and consumers use the owner's parsed facts. See Interpret boundary facts once.
  • Combined failures preserve partial observations, remaining resources, and cleanup facts. See Own the lifecycle.
  • A hardcoded limit is an REA_ runtime setting with a default, floor, and maximum, unless a fixed ceiling has a stated reason. See Adding a runtime setting.

@chatgpt-codex-connector

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-25T08:32:29.431277Z
We couldn’t complete this review. Comment @codex review to try again.
546b08e PR opened
ℹ️ 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.

@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.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; it improves refusal messages without expanding installer support.

Summary

Unsupported Linux Hopper setup now names the detected distribution, version, package family, and architecture before listing supported hosts.

  • Linux Hopper refusals name the detected host.

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: liziye627-design explicitly deferred testing an Ubuntu container workflow on Bazzite and intentionally did not add Bazzite installer support.

Reviews (1) · Last reviewed commit: "fix(setup): name the detected host when ..." · Reviewed by Greptile

@morluto morluto added area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working labels Nov 26, 2026
@liziye627-design
liziye627-design force-pushed the fix/8500-hopper-detected-host branch from 546b08e to d824a0a Compare November 26, 2026 15:38
@liziye627-design
liziye627-design force-pushed the fix/8500-hopper-detected-host branch from d824a0a to b545c33 Compare November 27, 2026 16:35
@vincentkoc
vincentkoc merged commit 57d817c into morluto:main Nov 30, 2026
43 of 56 checks passed
@vincentkoc

Copy link
Copy Markdown
Collaborator

thanks! merged after a clean review and 125 passing targeted tests. setup now names the rejected host without changing eligibility.

vincentkoc added a commit to xu91102/rea that referenced this pull request Nov 30, 2026
* 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)
  ...
vincentkoc added a commit to liziye627-design/rea that referenced this pull request Nov 30, 2026
* 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)
  ...
vincentkoc added a commit to viniciusdsandrade/rea that referenced this pull request Nov 30, 2026
* 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)
  ...
vincentkoc added a commit to ShuaixinHuang/rea that referenced this pull request Nov 30, 2026
* 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)
  ...
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants