Skip to content

fix(hopper): reserve Linux demo application before launch - #1158

Merged
N0zoM1z0 merged 3 commits into
mainfrom
fix/hopper-stack-local-fixture
Oct 9, 2026
Merged

N0zoM1z0 merged 3 commits into
mainfrom
fix/hopper-stack-local-fixture

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Linux Hopper 6.4.2 forwards a second native launch into the first application, even across private displays. A competing CLI/MCP request can fail startup while still adding its document to another REA session.

Reserve the Linux demo application with the existing private, per-user lease before bootstrap, display selection, or launch. Competing same-target and different-target requests now return provider_unavailable with the owning session and requested target; they leave the owner's documents unchanged. Keep the macOS target/profile lease identity unchanged. Unresponsive or malformed live lease endpoints are preserved, while genuinely stale sockets remain recoverable. Serialize stale-socket recovery through the replacement bind so competing recoverers cannot unlink a newly acquired lease. Release uses Node's Unix-socket close cleanup without a second unlink; failed permission setup closes its listener.

Add endpoint and launcher regressions, a real-provider concurrent CLI isolation check, and explicit stack storage in the C locals fixture. Document the Linux concurrency boundary and recovery workflow.

Validation:

  • npm run build:cached; 70 focused Hopper tests across nine files; npm run check:fast; duplication check; npm run docs:check.
  • 24 rounds of 12 concurrent stale-socket recoveries: one reachable owner per round, typed competing failures, and no retained listeners.
  • Final installed package (52c82ab0) with official Linux Hopper 6.4.2: repeated MCP opens, reconnect after disconnect, same/different competing CLI and MCP launches, target switching, cancellation/recovery, CLI/MCP parity, and complete owned-process cleanup passed. Two standalone CLI inspections and four fixture checks also passed.
  • Full Linux semantic verification remains incomplete: this demo does not expose the long-literal inventory required by that separate oracle. The oracle was retained. No new native macOS or GUI Cancel/overlay verification was performed.

Related to #479. The original macOS GUI report and #494 remain outside this verified CLI/MCP fix.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0 N0zoM1z0 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Maintainer self-review: reproduced cross-session document forwarding on official Linux Hopper 6.4.2 and a concurrent stale-recovery listener leak. The final installed package passes same/different competing CLI/MCP isolation, reconnect, cancellation/recovery, target switching, parity, and owned-process cleanup. Also passed 70 focused tests, build/static/docs/duplication checks, and 24 concurrent recovery rounds. Existing macOS lease keys are preserved. GUI behavior and the separate full Linux long-literal oracle remain unverified; neither is claimed fixed.

@N0zoM1z0
N0zoM1z0 merged commit 33d5ae0 into main Oct 9, 2026
22 checks passed
@N0zoM1z0
N0zoM1z0 deleted the fix/hopper-stack-local-fixture branch October 9, 2026 02:14
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
* test(hopper): give locals oracle explicit stack storage

* fix(hopper): reserve Linux demo application before launch

* fix(hopper): serialize stale lease recovery
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
@morluto morluto added the provider: hopper Analysis provider / engine: hopper label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working provider: hopper Analysis provider / engine: hopper

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants