Skip to content

Improve MiniOxygen debugger connections - #3883

Merged
frandiox merged 5 commits into
mainfrom
fd-minioxygen-debug
Jul 28, 2026
Merged

Improve MiniOxygen debugger connections#3883
frandiox merged 5 commits into
mainfrom
fd-minioxygen-debug

Conversation

@frandiox

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Improve the reliability of local debugger connections to MiniOxygen.

WHAT is this pull request doing?

Uses the IPv4 loopback address consistently, clarifies the inspector connector lifecycle, and adds debugger connection coverage.

HOW to test your changes?

pnpm --filter @shopify/mini-oxygen test

frandiox and others added 4 commits July 28, 2026 19:00
Bind the public inspector to loopback and validate Host and Origin headers so network peers and untrusted browser pages cannot attach to workerd. Add lifecycle handling and real CDP coverage to preserve supported local debugger flows.

Co-authored-by: Codex <codex@openai.com>
Return explicit reconnect and close methods so the connector lifecycle is clear at call sites instead of attaching cleanup behavior to a callable function. Update the return documentation to match the object API.

Co-authored-by: Codex <codex@openai.com>
Keep the release note focused on improved local debugger connections and scope the explicit patch declaration to MiniOxygen.

Co-authored-by: Codex <codex@openai.com>
Give the CLI's IPv4 loopback instructions their own release note so the direct CLI change is described separately from MiniOxygen runtime behavior.

Co-authored-by: Codex <codex@openai.com>
@frandiox
frandiox requested a review from a team as a code owner July 28, 2026 10:46
@shopify

shopify Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Oxygen deployed a preview of your fd-minioxygen-debug branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment July 28, 202611:07 AM

Learn more about Hydrogen's GitHub integration.

Keep an error listener while closing a still-connecting inspector socket so its asynchronous close error does not escape during MiniOxygen disposal under parallel test load.

Co-authored-by: Codex <codex@openai.com>

@karreiro karreiro left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you, @frandiox!

@frandiox
frandiox merged commit 7af05b8 into main Jul 28, 2026
21 checks passed
@frandiox
frandiox deleted the fd-minioxygen-debug branch July 28, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants