Repository navigation
fix(hopper): wait for late bridges during cleanup - #1866
Merged
Merged
Conversation
morluto
marked this pull request as ready for review
October 11, 2026 14:46
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
3 tasks done
N0zoM1z0
added a commit
that referenced
this pull request
Oct 11, 2026
Include the main-branch Hopper startup timeout normalization already merged in #1866 so combined CI retains launcher diagnostics when either timer fires. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> Co-authored-by: Kaoru0822 <[email protected]>
8 tasks done
2 tasks done
19 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.
Addresses the remaining review comment from #1817, which merged while this fix was being prepared.
close_binarypreviously made one socket connection attempt after a timed-out Hopper handoff. A missing or refused endpoint returned immediately, even when the matching bridge appeared milliseconds later. Retry onlyENOENTandECONNREFUSEDwithin the existing 30-second cleanup deadline, sharing that deadline with the health handshake. Other connection failures, rejected credentials, and mismatched run identities retain ownership without requesting document shutdown.Preserve the configured startup timeout and launcher diagnostics when the health request's timer fires before the startup timer. Extend the regression coverage to publish the socket after close begins, including an actual refused Unix socket and the compiled stdio MCP workflow. Allow the failure tests to exercise the full cleanup window, and await the SDK child-close event before recovering a retained target lease.
Validation:
npm run checkand the pre-push check passed.