fix: restore CDP relay WebSocket bridge in extension#904
Merged
Conversation
#880 removed all bridge code from the extension, breaking --connect and MCP --relay modes. Restore relay-only functionality: - Add relayPort setting (default 9877) + preferences UI - Restore CDP relay WebSocket client in offscreen document - Restore relay handlers in background.ts (auto-launch, alarm, storage) - Wire opts.port to relay.start(port) in CLI - Restore unit tests (get-relay-port, relay-port-changed) - Add relay E2E tests (35 tests) and connect mode CI test - Add explicit --relay flag to CI CLI E2E steps Closes #903 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stevez
added a commit
that referenced
this pull request
May 12, 2026
Bump all packages to 0.27.2. Restore --connect and MCP --relay modes broken since v0.27.0 bridge removal (#904). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
relayPortsetting (default 9877) with preferences UI so the extension knows which port to connect toopts.porttorelay.start(port)in CLI so--connect --port <N>actually worksTest plan
pnpm run build— all packages buildpnpm test(extension) — 701 tests pass (3 new: get-relay-port, relay-port-changed)playwright-repl --connect— CLI starts relay, extension auto-connects, commands workplaywright-repl --connect --port 9999— custom port worksnode packages/cli/e2e/test-connect-replay.js— connect mode CI test passesCloses #903
🤖 Generated with Claude Code