Skip to content

fix(browser): write camofox screenshots into the mounted cache tree - #81948

Closed
aydnOktay wants to merge 1 commit into
NousResearch:mainfrom
aydnOktay:fix/browser-vision-screenshot-cache-path
Closed

aydnOktay wants to merge 1 commit into
NousResearch:mainfrom
aydnOktay:fix/browser-vision-screenshot-cache-path

Conversation

@aydnOktay

Copy link
Copy Markdown
Contributor

Summary

  • Camofox browser_vision wrote PNGs under the legacy top-level browser_screenshots/ directory.
  • Docker bind-mounts cache/screenshots (via get_cache_directory_mounts), so sandbox follow-up on the returned path missed the file even though the tool reported success — and map_cache_path_to_container returned None for the camofox path.
  • Align camofox with browser_tool's get_hermes_dir("cache/screenshots", …) layout.
  • Annotate agent_visible_screenshot (keep screenshot_path as the host/gateway path) using the same helpers as image/tts/video artifacts.

Before / After

Backend Write dir Sandbox follow-up
camofox + docker (before) …/browser_screenshots/ (unmounted) not-found / unmappable
camofox + docker (after) …/cache/screenshots/ + agent_visible_screenshot=/root/.hermes/cache/screenshots/… works
local host path unchanged (no annotation)

Camofox browser_vision saved under the legacy top-level
browser_screenshots/ directory, which Docker does not bind-mount
(cache/screenshots is). Sandbox follow-up then missed the file even
though the tool reported success. Align with browser_tool's
get_hermes_dir layout and annotate agent_visible_screenshot like
image/tts/video artifacts.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have tool/browser Browser automation (CDP, Playwright) tool/vision Vision analysis and image generation backend/docker Docker container execution labels Aug 8, 2026
@aydnOktay

Copy link
Copy Markdown
Contributor Author

Closing to concentrate review on a single linked product bug: #89979.

@aydnOktay aydnOktay closed this Aug 19, 2026
@aydnOktay

Copy link
Copy Markdown
Contributor Author

Closing to concentrate review on a single linked product bug: #89979.

1 similar comment
@aydnOktay

Copy link
Copy Markdown
Contributor Author

Closing to concentrate review on a single linked product bug: #89979.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend/docker Docker container execution P3 Low — cosmetic, nice to have tool/browser Browser automation (CDP, Playwright) tool/vision Vision analysis and image generation type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants