Repository navigation
fix(hopper): reserve Linux demo application before launch - #1158
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
N0zoM1z0
left a comment
There was a problem hiding this comment.
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.
* test(hopper): give locals oracle explicit stack storage * fix(hopper): reserve Linux demo application before launch * fix(hopper): serialize stale lease recovery
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_unavailablewith 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.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.Related to #479. The original macOS GUI report and #494 remain outside this verified CLI/MCP fix.