docs: Brave / Chromium 144+ fixed-port connection notes#424
Conversation
The brave://settings remote-debugging checkbox opens CDP on 9222 but /json/version 404s — document reading DevToolsActivePort from the Brave profile dir and connecting via BU_CDP_WS, plus stale-socket recovery for a named daemon. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✅ Skill review passedReviewed 1 file(s) — no findings. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds guidance for connecting to Brave’s remote debugging endpoint when the usual CDP HTTP discovery endpoints return 404, documenting how to retrieve the WebSocket path from DevToolsActivePort.
Changes:
- Document Brave/Chromium behavior where
/json/versionand/json/listreturn 404 despite CDP being available. - Add steps to read
DevToolsActivePortand connect using an explicit WebSocket URL and a dedicated daemon namespace. - Add a note about clearing stale daemon socket/pid files on initial connection errors.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| ## Brave (and Chromium 144+) on a fixed debug port | ||
|
|
||
| The brave://settings "Remote debugging" checkbox opens CDP on `127.0.0.1:9222`, but the HTTP discovery endpoints (`/json/version`, `/json/list`) return **404** — an empty curl response does NOT mean the port is dead. Read the websocket path from the profile dir instead: |
| The brave://settings "Remote debugging" checkbox opens CDP on `127.0.0.1:9222`, but the HTTP discovery endpoints (`/json/version`, `/json/list`) return **404** — an empty curl response does NOT mean the port is dead. Read the websocket path from the profile dir instead: | ||
|
|
||
| ```bash | ||
| cat "$HOME/Library/Application Support/BraveSoftware/Brave-Browser/DevToolsActivePort" |
There was a problem hiding this comment.
1 issue found across 1 file
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="interaction-skills/connection.md">
<violation number="1" location="interaction-skills/connection.md:37">
P2: The documentation instructs users to read `DevToolsActivePort` where "line 1: port", implying the port may vary, but the connection example hardcodes `9222` in the WebSocket URL. Either clarify that the settings checkbox always binds to port 9222 (and only the UUID needs to be read), or update the example to use the port value from `DevToolsActivePort` for consistency.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
|
|
||
| ```bash | ||
| cat "$HOME/Library/Application Support/BraveSoftware/Brave-Browser/DevToolsActivePort" | ||
| # line 1: port, line 2: /devtools/browser/<uuid> |
There was a problem hiding this comment.
P2: The documentation instructs users to read DevToolsActivePort where "line 1: port", implying the port may vary, but the connection example hardcodes 9222 in the WebSocket URL. Either clarify that the settings checkbox always binds to port 9222 (and only the UUID needs to be read), or update the example to use the port value from DevToolsActivePort for consistency.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At interaction-skills/connection.md, line 37:
<comment>The documentation instructs users to read `DevToolsActivePort` where "line 1: port", implying the port may vary, but the connection example hardcodes `9222` in the WebSocket URL. Either clarify that the settings checkbox always binds to port 9222 (and only the UUID needs to be read), or update the example to use the port value from `DevToolsActivePort` for consistency.</comment>
<file context>
@@ -28,6 +28,25 @@ for t in tabs:
+
+```bash
+cat "$HOME/Library/Application Support/BraveSoftware/Brave-Browser/DevToolsActivePort"
+# line 1: port, line 2: /devtools/browser/<uuid>
+```
+
</file context>
| # line 1: port, line 2: /devtools/browser/<uuid> | |
| # line 1: port (always 9222 when using the settings checkbox), line 2: /devtools/browser/<uuid> |
Adds a section to
interaction-skills/connection.mdcovering connecting to Brave (and any Chromium 144+) when remote debugging is enabled via the settings checkbox on a fixed port:/json/versionand/json/listreturn 404 on these builds — an empty curl is not a dead portDevToolsActivePortin the Brave profile dirBU_NAME+BU_CDP_WSoverrideField-tested today against Brave on macOS.
🤖 Generated with Claude Code
Summary by cubic
Add connection notes for Brave and Chromium 144+ when remote debugging is enabled on a fixed port. Covers 404 discovery endpoints, reading the websocket path from
DevToolsActivePort, connecting viaBU_NAME+BU_CDP_WS, handling stale sockets, and noting the browser UUID changes on each restart.Written for commit 147d30b. Summary will update on new commits.