Repository navigation
Conversation
|
Thanks for the context here. I did a careful shell check against current Close: current main already makes browser screenshot paths discoverable through structured tool-result media and the home-relative media path fix shipped in v2026.6.6; adding a visible MEDIA hint is now obsolete and conflicts with the open screenshot privacy/security follow-up. So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Keep the shipped structured media path handling and route any browser screenshot auto-delivery or suppression changes through the open security/product issue, not through a visible MEDIA hint. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows the historical path-discovery problem and current main's structured media extraction path; the remaining auto-delivery privacy question is tracked separately. Is this the best way to solve the issue? No. Adding MEDIA text is not the best fix now that current main uses structured media extraction and the browser screenshot privacy decision lives in #44759. Security review: Security review needs attention: The PR explicitly adds a browser screenshot media directive, which can auto-deliver sensitive screen contents to chat channels.
AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 66880a5d736c; fix evidence: release v2026.6.6, commit 3312ce5acba9. |
cdcb872 to
d5cb9b1
Compare
|
Thanks for the review. I added the active-version changelog entry crediting @sumurtk2 and reran the requested checks:\n\n- |
d5cb9b1 to
49e544f
Compare
|
Quick follow-up on the failing checks: the two failures were I rebased this PR onto the latest
Force-pushed the clean rebased branch. Latest commits are |
|
This pull request has been automatically marked as stale due to inactivity. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
This PR makes the agent-facing browser screenshot tool include a
MEDIA:<path>text hint alongside the existing image result.The browser screenshot route already saves screenshots to managed media, and the CLI already prints a
MEDIA:<path>line foropenclaw browser screenshot. This change aligns the tool result with that CLI behavior so chat/channel delivery layers can reliably discover the saved screenshot path.Motivation
In a Telegram flow,
browser.screenshotsuccessfully captured the screenshot and returned image data internally, but the assistant response did not attach the screenshot to the user. Sending the same browser tab screenshot worked when captured through CDP, saved to a file, and sent explicitly via the channelmediaparameter.That suggests capture and channel upload were working; the missing piece was an explicit media path hint in the browser screenshot tool result.
Changes
extraText: MEDIA:<result.path>when returning browser screenshot results viaimageResultFromFile.Testing
pnpm exec vitest run --config test/vitest/vitest.extension-browser.config.ts extensions/browser/src/browser-tool.test.tsResult: