Skip to content

fix(test): force-close the MCP App bridge when the initial tool result publication is rejected - #227

Merged
ScriptedAlchemy merged 1 commit into
mainfrom
fix/browser-bridge-close-on-rejected-publish
Sep 1, 2026
Merged

fix(test): force-close the MCP App bridge when the initial tool result publication is rejected#227
ScriptedAlchemy merged 1 commit into
mainfrom
fix/browser-bridge-close-on-rejected-publish

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • mountBrowserApp now force-closes the MCP App bridge (mirroring the timeout and handshake-failure paths) when the initial publishToolResult is rejected by the 1 MiB queued-host-message limit, so the test-supplied closeBinding operation runs instead of leaking the binding.
  • Regression test mounts an app with a >1 MiB tool result and asserts the mount rejects and closeBinding was invoked; verified to fail without the source fix.

Addresses the unresolved P2 Codex finding on #212 (packages/agent-bundle/src/test/browser.ts:365-368).

Test plan

  • pnpm test:unit packages/agent-bundle/tests/test-browser-mount.test.ts (pass; fails without the fix)
  • pnpm typecheck (clean after runtime build)
  • pnpm lint (0 errors, 0 warnings)

@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7974390

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
agent-bundle Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T22:58:04.853048Z 7974390 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ScriptedAlchemy
ScriptedAlchemy merged commit 72c3b38 into main Sep 1, 2026
9 checks passed
@ScriptedAlchemy
ScriptedAlchemy deleted the fix/browser-bridge-close-on-rejected-publish branch September 3, 2026 05:26
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.

1 participant