Repository navigation
fix(hopper): complete owned Linux shutdown - #116
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This was referenced Jul 23, 2026
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
* fix(hopper): avoid blocking owned Linux shutdown * fix(hopper): complete owned shutdown cleanup
DrAbdulmalek
pushed a commit
to DrAbdulmalek/rea
that referenced
this pull request
Oct 26, 2026
Co-authored-by: Manus AI <[email protected]>
4 of 22 tasks
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 real-Hopper verification completed analysis but hung for 30 seconds in
waitForBackgroundProcessToEnd()during shutdown. The timeout produced an error diagnostic even though REA owns the Linux demo Hopper process group and can close it through the existing run-token-verified cleanup path.This change distinguishes two shutdown paths:
If owned cleanup fails, the client requests a bounded document-shutdown fallback and retries cleanup. Cleanup still fails closed when process identity cannot be proven.
Type of Change
Testing Performed
npm run typecheck)npm run lint)npm testvianpm run check): 67 files, 479 testsnpm run verify:hopper): macOS was not availablenpm run verify:hopper:linux)npm run verify:package)Additional proof:
HOPPER_LAUNCHER_PATH=/opt/hopper/bin/Hopper HOPPER_TARGET_PATH=/bin/true HOPPER_SECOND_TARGET_PATH=/bin/ls npm run verify:hopper:linuxpassed with 68 tools, two distinct target hashes, semantic decompilation and dossier checks, target switching, andcleanShutdown: true.HOPPER_LAUNCHER_PATH=/opt/hopper/bin/Hopper node scripts/rea.mjs analyze --format md /bin/truereturned abinary_overviewEvidence record instead of calling an unknown bridge method.npm run verify:packagepassed the packaged CLI, setup, 68-tool MCP server, six prompts, and target lifecycle.npm pack --dry-runlisted 179 package files.Tool Contract Impact
None. The 68-tool inventory and public CLI/MCP schemas are unchanged. The new shutdown messages are private to REA's authenticated Hopper bridge.
Suggested Review Order
bridge/hopper_bridge.pysrc/hopper/HopperClient.tsandsrc/hopper/BridgeLauncher.tstests/bridgeTruthfulness.test.tsRelated Issues
Closes #16.
Closes #56.