Skip to content

fix(mcp): clean up disconnected editor bridges#211

Merged
DavidBabinec merged 1 commit into
mainfrom
fix/mcp-editor-bridge-cleanup
Jul 11, 2026
Merged

fix(mcp): clean up disconnected editor bridges#211
DavidBabinec merged 1 commit into
mainfrom
fix/mcp-editor-bridge-cleanup

Conversation

@DavidBabinec

Copy link
Copy Markdown
Contributor

What changed

  • clean up MCP editor bridges when Bun cancels a disconnected response stream, as well as on request aborts and failed writes
  • prevent calls against destroyed bridges from creating orphan 90-second waiters
  • re-resolve the active Content bridge after asynchronous authorization
  • cover consumer cancellation, superseded workspaces, and post-destroy calls

Why

Repeated browser contexts could leave bridge heartbeats and responses alive because transport cancellation does not necessarily abort the server request. Over a full E2E run those leaked connections eventually made CMS API requests hang.

Verification

  • bun test — 6,209 pass, 1 skip, 0 fail
  • focused MCP/bridge tests — 18 pass, 0 fail
  • bun run lint
  • bunx tsc --noEmit
  • bun run build

@DavidBabinec
DavidBabinec merged commit 7ad013c into main Jul 11, 2026
9 checks passed
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