Repository navigation
fix(hopper): report launcher failures before bridge timeout - #1105
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. |
There was a problem hiding this comment.
Maintainer validation: six regressions reproduce the timeout and helper/GUI lifetime mistakes; 93 focused tests and static/docs checks pass. All 25 checks passed at d898981 before merge. The installed package passes real Linux Hopper CLI/MCP analysis and cleanup. The actual macOS helper failure also reports its Spotlight error immediately while preserving unknown GUI state. Follow-up installed-package verification with current main and #1111 now passes full macOS Hopper 6.6.0 Demo analysis, cancellation recovery, target-switch/explicit-close disposal, CLI/MCP parity and clean shutdown; the separate installed CLI passes too. The original older-database GUI Cancel/overlay behavior remains unverified.
…1105) * fix(hopper): report launcher failures before bridge timeout * fix(hopper): separate helper ownership from GUI lifetime
A failed macOS Hopper launcher helper was ignored until the bridge readiness timeout, hiding the observed Spotlight discovery error behind a generic startup timeout. Stop waiting after an observed nonzero/signal helper exit, preserve its stdout/stderr, exit code and signal in
details.launcher, and keep the GUI state unknown. A successful helper exit still hands off to the GUI normally. The native launcher keeps ownership of its helper process group for cleanup while declaring the external GUI lifetime separately; helper exit must not mark that GUI exited. An owned provider exit, including exit 0 before readiness, reports the observed process exit.Launcher output drainage is bounded because descendants may inherit its pipes. Diagnostics report output closure/truncation and redact only the session transport credential, preserving caller evidence.
Validation: six new regressions fail before their respective fixes; 93 focused startup, protocol, health, cleanup, lease and error-projection tests pass. Build, static checks and generated-document checks pass.
The final installed package (
d898981f, SHA-256c3f0e1c757f56a368c60ff3b933d75d1f93cf52a740649b4fec670b3003d2b67) passes the unmodified real Linux Hopper 6.4.2 CLI/MCP verifiers, including target identity/switching, 1,205-item inventories, unrelated-process survival and clean shutdown. A native macOS official-demo probe uses identical production source and confirms exit 3 plus the original Spotlight error are returned promptly with GUI state unknown while the GUI remains running. Full macOS analysis is not qualified: the runner's official helper cannot find Hopper through Spotlight, and the initial demo dialog is still being initialized. No Hopper/Ghidra support expansion is claimed.