Skip to content

fix(setup): separate host support and stop skill checks after drift - #2073

Merged
morluto merged 3 commits into
morluto:mainfrom
txiki739:fix/host-support-vs-hopper-installer
Oct 13, 2026
Merged

morluto merged 3 commits into
morluto:mainfrom
txiki739:fix/host-support-vs-hopper-installer

Conversation

@txiki739

@txiki739 txiki739 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Host support now follows recognized apt, dnf, and pacman families independently of the narrower tested Hopper installer list. The os-release parser also decodes single-quoted identities before either decision, so valid Debian-derived hosts are classified consistently.

Setup skill inspection now stops at the first managed-file drift rather than probing later files and destinations. This preserves the observed drift as the determining setup result and avoids unrelated later read/cleanup failures replacing it; the existing recovery and cleanup-ownership cases remain in the branch.

Validation for this revision: source inspection and git diff --check. Tests, builds, CI reruns, and real-provider qualification were skipped at the explicit user request. Earlier contributor verification is not a qualification of this revision.

LinuxDistribution.supported carried two meanings at once: that the host runs
REA, and that the automated Hopper installer is tested on it. The doctor read
the first meaning from the second, so Debian-derived hosts such as Kali
reported unsupported_host while their providers worked normally.

Rename the field to hopperSetupSupported, which only the Hopper installer and
setup planning consume, and derive host support from the package family
through supportsReaHost(). Any distribution with a recognized apt, dnf, or
pacman family is now a REA host. The tested Hopper installer list is
unchanged, so Debian and Kali keep falling back to configuring an existing
provider instead of downloading an untested package.

Verified on Kali 2026.3 (Debian testing, x86_64): rea doctor reports a healthy
environment with Ghidra 12.1.4, and analyze_function decompiles an x86_64 ELF
through the MCP server. npm run check, npm run docs:check, and the application
and Ghidra suites pass. No Hopper or IDA host workflow was exercised.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T12:39:01.946575Z 7f5e029 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 46fa0d982d

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/application/SetupSkill.ts Resolved
Comment thread src/application/LinuxHopper.ts Resolved
@morluto

morluto commented Oct 13, 2026

Copy link
Copy Markdown
Owner

@greptileai review

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5 Tier: plus

[Medium impact] The PR appears safe to merge; broader host support does not widen Hopper installation permissions.

Summary

Separates REA host support from the tested Hopper installer list.

  • Linux host support no longer depends on Hopper’s installer list.
  • Skill checks stop at the first file that needs updating.

The previous-review commits have different merge bases, so this review covered the full PR diff. No previous review threads were supplied. Whether another PR supersedes this one could not be checked because GitHub access was unavailable.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A["Parse Linux distribution"] --> B{"Recognized package family?"}
  B -->|Yes| C["REA host check passes"]
  B -->|No| D["REA host check fails"]
  A --> E{"Tested Hopper installer target?"}
  E -->|Yes| F["Automated Hopper setup allowed"]
  E -->|No| G["Configure an existing provider"]
  C --> H["Provider-specific checks still apply"]
Loading

Reviews (2) · Last reviewed commit: "fix(setup): decode quoted os-release ide..." · Reviewed by Greptile

@morluto morluto changed the title fix(host): separate REA host support from Hopper installer targets fix(setup): separate host support and stop skill checks after drift Oct 13, 2026
@morluto

morluto commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Review findings addressed at their producing boundaries and consumers. Latest changes were reviewed from source; tests and provider runs were skipped at the maintainer's request. Findings requiring separate decisions or verification remain open.

  1. thread 1

The PR title and body now describe host support, quoted os-release identities, and the setup first-drift short-circuit with its cleanup implications. The first observed drift remains the determining setup result, rather than being replaced by later unrelated I/O failures. No related metadata cleanup remains.

Validation: source inspection, touched-file formatting, and git diff --check. Tests, builds, lint, and CI reruns were not run at the explicit user request.

  1. thread 1

Addressed in 7f5e029. The os-release parser now decodes single-quoted values literally and double-quoted shell escapes before deriving ID, ID_LIKE, package family, or host support. Added single-quoted ID and Debian ID_LIKE cases at the same boundary. The Hopper installer support list is unchanged. No related cleanup remains.

Validation: source inspection, touched-file formatting, and git diff --check. Tests, builds, lint, and CI reruns were not run at the explicit user request.

@morluto morluto added bug Something isn't working area: setup Setup, packaging, upgrade, install, Doctor, and client registration area: domain Domain logic, errors, and pure functions area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior P2: medium Medium priority issue labels Oct 13, 2026
@morluto
morluto merged commit 7dcd23c into morluto:main Oct 13, 2026
1 check passed
@txiki739
txiki739 deleted the fix/host-support-vs-hopper-installer branch October 13, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: domain Domain logic, errors, and pure functions area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working P2: medium Medium priority issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants