Repository navigation
fix(linux): start Hopper demo sessions headlessly - #110
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
morluto
force-pushed
the
fix/linux-hopper-demo
branch
from
July 13, 2026 20:58
ecac22f to
75818d1
Compare
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
fix(linux): start Hopper demo sessions headlessly
DrAbdulmalek
pushed a commit
to DrAbdulmalek/rea
that referenced
this pull request
Oct 26, 2026
Rebase of useful morluto#105 content onto main after morluto#104. Keep uv/ZIP security in UV-AND-DOWNLOAD-SECURITY.md; do not close morluto#51.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Linux Hopper 6.4.2 presents
Try the Demoon every cold process and blocks the REA Python bridge before CLI or MCP analysis can start. This change makes that startup path work without a desktop session or a persistent Hopper process.REA now launches each Linux Hopper session on an authenticated private Xvfb display, validates the exact supported Hopper binary and dialog rectangle, selects only the expected demo action, waits for the authenticated bridge handshake, and tears down Hopper and Xvfb with the session. Licensed installations continue when the bridge appears without a demo dialog. Any binary, dialog, process, or startup mismatch fails closed with a caller-safe error.
Setup now installs the direct Xvfb, xauth, Python, X11, and XTEST runtime packages, pins the official Hopper 6.4.2 Linux artifacts, and reports unsupported configured launchers instead of repeatedly reinstalling the system package. Doctor checks the same runtime and binary contracts. Fresh macOS installs still require first-run activation.
Type of Change
Testing Performed
npm run typecheck)npm run lint)npm testvianpm run check)npm run verify:hopper): macOS was not availablenpm run verify:hopper:linux)npm run verify:package)Additional proof:
HOPPER_TARGET_PATH=/usr/bin/true HOPPER_SECOND_TARGET_PATH=/usr/bin/false npm run verify:hopper:linuxpassed with 68 tools, target switching, and clean shutdown.npm pack --dry-run --jsonincludedscripts/hopper-demo-x11.py.npm run knip,npm run jscpd, andnpm run scan:todoscompleted; jscpd reported 1.49% duplicated lines.Real runtime verification used Ubuntu 24.04 and Hopper 6.4.2. Fedora and Arch package commands are covered by tests but were not exercised on real hosts. Supporting another Hopper version requires validating its real dialog layout and adding its binary and package digests.
Tool Contract Impact
None. The 68-tool inventory and MCP schemas are unchanged. CLI and MCP share the same Hopper launch boundary.
Suggested Review Order
scripts/hopper-demo-x11.pyandsrc/hopper/BridgeLauncher.tssrc/application/LinuxHopper.ts,src/application/Doctor.ts, andsrc/application/Setup.tssrc/hopper/HopperClient.tsandsrc/domain/errors.tsRelated Issues
No directly related issue or PR was found.
Disclosure
This change was developed with AI assistance. The implementation was exercised against real Hopper on Linux, audited through the repository review gates, and the final diff passed structured review.