Repository navigation
fix(hopper): stop Linux demo children when the REA owner exits - #2499
Merged
Merged
Conversation
Bind the owned demo helper to REA's private stdin stream and unwind child cleanup on EOF during startup or analysis. Verify graceful and SIGKILL owner exit through real CLI/MCP workflows and preserve unrelated processes. Assisted-by: Reimu (gensokyo-skills:reimu-incident-triage)
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
3 tasks done
5 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.
After a Linux Hopper demo MCP owner is SIGKILLed, its detached helper continues waiting for Hopper. The vendor singleton forwards later launches into that orphan, so every subsequent native operation exits 75 with license-prompt guidance. This was reproduced with real Hopper 6.4.2 on Ubuntu 24.04, including a successful CLI baseline and a failing different-target analysis after killing only the MCP owner.
Bind the owned Linux helper to REA's private piped stdin. EOF during startup or after bridge readiness unwinds the existing cleanup of its direct Hopper and Xvfb children. The stream accepts both FIFO and libuv Unix socket transports. Add production-boundary tests and real graceful/SIGKILL CLI/MCP recovery checks, with an unrelated Hopper-name sentinel. Clarify the documented macOS document retention and owned Linux demo shutdown behavior.
Fixes #2459.
Validation:
npm run checkandnpm run docs:checkpassed./usr/bin/true, listed 86 procedures and returned Evidence. It finished with the session open; afterward no helper/Hopper/Xvfb remained and a different-target CLI analysis succeeded. Temporary copied authentication was removed.npm run verify:hopper:linuxwas attempted on both the patch and untouched mainbb540826d: both fail at the same existingfixture omitted its real long literalassertion inverifySearchModes. The focused real owner-exit verifier passed independently; this PR does not claim a full real-Hopper lane pass. Licensed Hopper, macOS, WSL, and the user/mount namespace fallback were not exercised on a real provider.Already orphaned applications from older REA versions still require closing manually. SIGKILL can retain private runtime files; subsequent sessions recover the lease after the helper finishes child cleanup. The change prevents the recurring singleton wedge without adopting or signaling unrelated applications.