Repository navigation
fix(browser): keep screenshots private by default - #101434
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 7, 2026, 6:54 AM ET / 10:54 UTC. Summary PR surface: Source +60, Tests +120, Docs +4. Total +184 across 7 files. Reproducibility: yes. by source inspection. Current main's browser screenshot raw-image paths call imageResultFromFile, imageResult records details.media.mediaUrl, and the media extractor queues that media unless details.media.outbound is false. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land the focused private-by-default browser screenshot fix after maintainer acceptance and exact-head validation, keeping explicit sharing through staged outbound media rather than implicit tool-result attachment. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection. Current main's browser screenshot raw-image paths call imageResultFromFile, imageResult records details.media.mediaUrl, and the media extractor queues that media unless details.media.outbound is false. Is this the best way to solve the issue? Yes, with maintainer acceptance of the default change. The PR uses the existing shared private-media contract at the browser owner boundary and avoids adding a new config or duplicate channel policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 69b9932fae45. Label changesLabel justifications:
Evidence reviewedPR surface: Source +60, Tests +120, Docs +4. Total +184 across 7 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (2 earlier review cycles)
|
cea8778 to
39f1f14
Compare
af5cf56 to
3dbc870
Compare
|
Land-ready proof for exact head
Security boundary: no browser access was reduced and no sandbox path allowlist was widened. The original screenshot stays a private tool artifact; only the bounded outbound copy is eligible for an explicit message-tool send. |
|
Merged via squash.
|
* fix(browser): keep screenshots private by default * fix(browser): preserve screenshot share handles * fix(browser): stage explicit screenshot shares * test(browser): avoid screenshot share temp files
Closes #44759
What Problem This Solves
Fixes an issue where users asking an agent to inspect a browser screenshot could have that screenshot automatically attached to the channel reply, exposing page content they had not asked the agent to send.
Why This Change Was Made
Browser screenshots now use the existing private tool-media contract on both raw-image paths. The image block and local path remain available to agent vision, while outbound delivery requires the agent to use the message tool explicitly. No browser permission, agent trust, or explicit media-send capability changes.
User Impact
Agents can still inspect browser screenshots normally. Channel replies no longer gain an implicit screenshot attachment; users can still ask the agent to share one explicitly.
Evidence
tbx_01kwxmt1fv7hpt6qt7dxr1xn3s: 119 focused tests passed across the browser tool and tool-media extraction suites; touched TypeScript files passedoxfmt --check.Live Gateway/agent proof will be added before landing.
AI-assisted: yes. I reviewed the affected browser, agent-media extraction, delivery, tests, and docs paths and understand the change.