Repository navigation
docs(browser): clarify attach coverage and Chromium setup - #2287
Merged
morluto merged 2 commits intoOct 13, 2026
Merged
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
3 tasks done
11 of 19 tasks
Owner
|
@greptileai review |
Contributor
|
This PR is set for a Plus review. TREX isn't supported with Plus or Apex reviews yet, so Greptile reviews this PR at Base while TREX is on. |
Contributor
|
10 of 19 tasks
Closed
2 tasks done
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
Three practical gaps in
docs/browser-observation.mdthat an agent or user runs into the first time they attach to a page:export.jsunderscriptswhilenetwork.requestshas no request that fetched it, which looks contradictory until you know why.google-chrome. It was not clear that any Chromium-family browser works, or where the executable lives on macOS (inside the.appbundle). Fedora's binary name ischromium-browser. There is also a container pitfall: headed Chromium under Xvfb keeps running, but its DevTools port never opens when GL libraries are missing.--remote-debugging-pipeor a private channel) giveslist_browser_targetsnothing to attach to. The doc now says to reproduce the flow in a Chromium-family browser started with--remote-debugging-port.No linked issue. This only corrects and clarifies documentation within existing boundaries. Related design discussion about attaching without an HTTP discovery endpoint: #2288.
Problem and expected behavior
inspect-web-page --include-script-sourceson the notes-web demo returnsexport.jsinscripts,network.requests: [], andprior_activity_available: false. The current text explains the empty network array but not why the script is there. Expected: the doc explains both.endpoint_unreachable. A browser driven over a pipe or a private channel has no such endpoint at all. Expected: the doc says REA needs the HTTP discovery endpoint and what to do instead.Change and scope
The change is documentation only, with 20 added lines in
docs/browser-observation.md:.appexecutable paths, Fedora'schromium-browser, the HTTP discovery endpoint requirement with the workaround, and the minimal-container GL libraries note.prior_activity_availableparagraph saying that pre-attach scripts are still reported underscripts, unlike network and console.Intentionally not included: any runtime change, and any attach path that does not use HTTP discovery (that would be a separate feature discussion).
Contribution scope: documentation correction within existing boundaries; maintainer scope decision not applicable.
Contract and boundary impact
docs/browser-observation.md); no code stage changed.scripts/network/prior_activity_availableoutput.docs/public/product-catalog.json), package, or installation impact: none. Skillmetadata.versionuntouched (no skill change).Expected effects:
Evidence and regression coverage
mainatd96550f, REA 6.4.0, macOS 26). The demo waswebsite/public/examples/notes-web/, served on127.0.0.1. Browsers ran headless with a fresh profile each:--remote-debugging-port=9242. With the page fully loaded and no click, I ranrea inspect-web-page http://127.0.0.1:9242 <target> --include-script-sources --observation-ms 1000 --json:scripts.items[0].url=.../notes-web/export.js, source included (length 925).network.requests=[], so there is nonotes.jsonrequest and no request forexport.jsitself.network.prior_activity_availableandconsole.prior_activity_availableare bothfalse.completeness.attach_limited_sectionsincludesnetwork_requestsandconsole_events.Chrome/155.0.8059.40),--remote-debugging-port=9244:rea list-browser-targets http://127.0.0.1:9244 --jsonlisted the notes-web page target, the same as Chrome.127.0.0.1:9246(checked withlsof).rea list-browser-targets http://127.0.0.1:9246 --jsonexited 1 with:{"error":"Browser observation failed","code":"provider_unavailable","category":"unavailable","message":"list_browser_targets could not reach the selected loopback debugging endpoint. Verify that the target process is running with debugging enabled and that the endpoint's port matches it, then retry.","retryable":true,"remediation":{"action":"list_browser_targets could not reach the selected loopback debugging endpoint. Verify that the target process is running with debugging enabled and that the endpoint's port matches it, then retry."},"details":{"operation":"list_browser_targets","reason":"endpoint_unreachable"}}libglvnd-gles,mesa-libEGLandmesa-dri-driverswere installed. That check used plain CDP scripts against the port, not REA itself. Thechromium-browserbinary name comes from the same Fedora setup.--remote-debugging-pipe. The pipe statement relies on that flag providing no TCP discovery endpoint. Theendpoint_unreachableresult was observed for a port with nothing listening.list-browser-targets, not a full inspection.For evidence-bearing changes: not applicable (documentation only).
Validation performed
npm run check: passed (6/6 turbo tasks; module boundaries and architecture guards passed).npm run docs:check: passed.npm run docs:build: passed (only the existing chunk-size warning).ec2d251before opening.npm run checkandnpm run docs:checkre-ran there and passed.docs:buildand the CLI runs ran on the previous based96550f; the four commits in between do not touch this page or the browser provider.Compatibility, safety, and release
metadata.versionleft at its current value, because no skill file changed and no check required a bump.Before merge
type(scope): outcome.