Repository navigation
feat(browsers): structural CDP for Chromium and Brave on loopback - #6123
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 19 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…de#5924) CDP-everywhere audit follow-up to PR #6088 (Helium): the other Chromium-family browsers in the shared desktop config were installed raw, so their DevTools endpoint existed only when a caller passed flags itself. Fleet port convention: 19222 Helium, 19223 Brave, 19224 Chromium, all bound to 127.0.0.1 only (remote path stays loopback + tailscale serve / CONNECT proxy per doc/2026-11-04_remote-gui-access-runbook.md). Chromium gets a bin-only wrapper (its desktop file uses a bare Exec=chromium resolved via PATH; wrapElectronWithFlags cannot be reused because the package symlinks share/applications into chromium-unwrapped and the helper desktop rewrite fails on the read-only target). Brave gets the full wrapper treatment in home/common (binaries wrapped, desktop entries repointed). Wrapper flags precede caller args, so playwright/puppeteer callers passing their own --remote-debugging-port still win. Firefox and Zen (Firefox-family) have no CDP; their remote protocol is WebDriver BiDi, left unconfigured and documented as a gap on #5924. Verified: both new derivations built and inspected (flags present; Brave desktop Exec repointed); changed modules evaluate for hosts amd and nixos. No switch performed -- activation rides the next system switch.
dezren39
force-pushed
the
feat/cdp-everywhere-browsers
branch
from
November 5, 2026 07:36
f0c2ebc to
de5a0f1
Compare
4 of 5 tasks
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.
CDP-everywhere audit follow-up to #6088 (Helium, #5924). Drew's question: does every fleet browser always enable CDP at any boot? Audit answer for the NixOS hosts: Helium yes (since #6088); Chromium and Brave were installed raw — no.
Changes (shared desktop config, so hosts
amd+nixosand their VM variants)chromiumCdpbin-only wrapper innixos/environment. Bin-only because (a)wrapElectronWithFlagscannot be reused — the wrapped chromium package symlinksshare/applicationsinto chromium-unwrapped's tree and the helper's in-place desktop rewrite fails on the read-only target (proven in a build), and (b) no rewrite is needed: chromium's desktop file uses a bareExec=chromiumresolved via PATH.braveCdpwrapper inhome/common(binaries wrapped, desktop entries repointed at the wrapper), replacing the rawbravehome package.tailscale serve/ CONNECT proxy per the design: remote GUI evaluation — performant desktop for the human client, cheaper answer for agents #5924 runbook. No config binds CDP to any non-loopback address.--remote-debugging-port(playwright/puppeteer via mcpx, which launches the system chromium by path) still wins.Not changed
--remote-debugging-porton current Firefox starts the BiDi remote agent, not CDP). Left unconfigured; recorded as a gap on design: remote GUI evaluation — performant desktop for the human client, cheaper answer for agents #5924 for a decision.Verification
chromium-156.0.8078.79-cdpandbrave-1.98.63-cdpderivations built and inspected: wrapper scripts carry--remote-debugging-address=127.0.0.1+ their ports; Brave's desktop Exec repointed at the wrapper.amdandnixossystemPackages contain both CDP wrappers).amdtoplevel build reached the toplevel derivation with the only failure being the original chromium wrapper attempt (fixed here); the re-run full toplevel build was still in progress under extreme unrelated laptop load (load ~40) at merge time. The two new leaf derivations — the only new build inputs — are built above.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.