Repository navigation
fix(linux): improve Hopper reliability and CachyOS support - #963
Conversation
|
Follow-up on the latest head ( I prepared follow-up commit
I intentionally left the The maintainer-side GitHub integration can write the upstream repo but not the fork head ( git fetch upstream chatgpt/pr-963-followup
git cherry-pick d8288ef1c8bb06e5b35823c5c9c0186abd5d05f8CI was triggered against this exact commit via temporary CI-only PR #979 (already closed to avoid leaving a duplicate PR open): https://github.com/morluto/rea/actions/runs/37635992965 |
|
Applied
Fresh CI is running for this PR head. I will check its final results and reviews before merging. These local checks do not claim a live Hopper session on CachyOS. |
N0zoM1z0
left a comment
There was a problem hiding this comment.
Reviewed the final head d8288ef, including the follow-up fixes for host-dependent launcher expectations and Linux/CachyOS documentation and diagnostics.
Verification: 102 focused tests across 7 files passed; docs:check and typecheck/lint passed. The fresh CI run for this fork PR (37638890681) completed successfully with all 22 jobs passing, including Linux, Windows, and Darwin lanes.
No remaining blocking findings in the reviewed changes. My local verification covers configuration, private-display helper behavior, and bounded cleanup; it does not add a new live CachyOS/Hopper GUI verification claim beyond the contributor's reported testing.
|
Thanks, @Namnarak, for your work on “fix(linux): improve Hopper reliability and CachyOS support.” I appreciate your contribution to REA. |
* fix(linux): support CachyOS Hopper hosts * fix(config): reuse user-local Hopper launcher * fix(hopper): harden Linux demo dialog handling * chore: retrigger CI after PR title fix * fix(linux): align Hopper defaults and support docs --------- Co-authored-by: Ysopwnable <[email protected]>
Summary
This PR improves the reliability of REA's Linux Hopper integration based on failures reproduced and tested on CachyOS.
It includes four related fixes:
rea doctorfor the legacy user-local installationTest environment
Tested locally on:
ID=cachyos,ID_LIKE=arch)~/.local/share/rea/hopper/bin/HopperReal-world testing so far has been performed on one machine/environment, so I do not want to claim universal compatibility yet.
Hopper demo dialog detection
The helper currently expects the Registration dialog to have one exact geometry:
On the tested system, the actual Registration dialog was
930x284, causing exit code 76 (unsupported_demo_dialog) even though the Hopper binary matched the supported digest.The dialog exposes useful X11 metadata:
This change identifies the Registration window and verifies that its
WM_TRANSIENT_FORparent is the Hopper Disassembler window. The Demo click is then calculated relative to the detected dialog instead of using an absolute screen coordinate.I also tested moving and resizing the dialog to
1200x284, outside the previous exact geometry, and the helper still detected and dismissed it correctly.Hopper launcher path consistency
rea doctoralready checks the legacy user-local path:but normal REA commands default to:
This can produce a state where Doctor reports Hopper healthy while analysis commands fail with
executable_missing.The runtime selection now keeps explicit configuration authoritative and otherwise uses:
HOPPER_LAUNCHER_PATH/opt/hopper/bin/HopperAn explicitly configured launcher path is never overridden.
CachyOS support
CachyOS reports:
REA already classifies its package family as Arch, but the host support check only accepts
id === "arch".This change explicitly admits
cachyosrather than accepting everyID_LIKE=archdistribution.Validated classification:
Bounded Hopper cleanup
One error cleanup path used:
with no timeout.
The helper already has a bounded
stop_process()implementation, so the child cleanup now reuses it.A test process intentionally ignoring SIGTERM was terminated via SIGKILL after the existing ~2 second timeout, as expected.
Validation
Targeted tests:
src/application/LinuxHopper.test.tstests/composition/hopperConfig.test.tstests/boundary/providers/hopper/linuxPrivateDisplay.test.tsResult: 45/45 passed
Additional checks passed:
I also ran the built branch against real Hopper without setting
HOPPER_LAUNCHER_PATH.The following completed successfully:
rea analyzerea searchrea functionrea decompileA small ELF fixture with a known
main -> alpha -> betacall graph and known string was also used during testing.No leftover Hopper/Xvfb analysis processes were observed after the completed runs.
Testing limitation
The fixes appear correct for the reproduced failure modes and the tested environment, but broader Linux/Hopper/X11 coverage would still be useful before considering the behavior universally verified.
AI assistance disclosure
This investigation, patch preparation, and testing were performed with assistance from ChatGPT.
ChatGPT was given access to my local development environment through tools connected to my account and was used to inspect REA, reproduce the failures, prepare the patches, run tests, and compare the local implementation against upstream.
This PR was prepared and submitted through my connected GitHub account by ChatGPT on my behalf, with my explicit approval. I reviewed the results before authorizing the upstream submission.
Existing upstream fix not included
During debugging I also encountered a Hopper bridge issue involving
list_strings/list_names, but that issue is already fixed in newer REA code, so it is intentionally not included here.