Skip to content

chore(mcp): fold the v2 relay handler into the relay and BrowserModel - #43893

Merged
Yury Semikhatsky (yury-s) merged 2 commits into
microsoft:mainfrom
yury-s:simplify-cdp-relay
Nov 5, 2026
Merged

Yury Semikhatsky (yury-s) merged 2 commits into
microsoft:mainfrom
yury-s:simplify-cdp-relay

Conversation

@yury-s

Copy link
Copy Markdown
Member

Summary

  • Delete cdpRelayV2.ts; CDPRelayServer is now pure transport (two sockets, the handshake wait, CDP framing).
  • BrowserModel owns the extension connection and both translation directions: the CDP command switch and the extension event switch. A new relay→extension command is one ExtensionCommands entry plus one model method.
  • Drop the V2 suffix from protocol types and add a typed ExtensionEvent union so the event switch has no casts.

Pure refactoring, no behavior changes.

@github-actions

This comment has been minimized.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you add a diagram of explanation on the roles of these components? I don't understand the clear responsibilities of each of the parts.

@yury-s

Copy link
Copy Markdown
Member Author

Could you add a diagram of explanation on the roles of these components? I don't understand the clear responsibilities of each of the parts.

Added to the comment in cdpRelay.ts.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5194 passed, 616 skipped


Merge workflow run.

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.

2 participants