Skip to content

Fix browser tool to not discard content when screenshot fails#156

Open
04cb wants to merge 1 commit intovxcontrol:masterfrom
04cb:fix/browser-tool-screenshot-error-handling
Open

Fix browser tool to not discard content when screenshot fails#156
04cb wants to merge 1 commit intovxcontrol:masterfrom
04cb:fix/browser-tool-screenshot-error-handling

Conversation

@04cb
Copy link

@04cb 04cb commented Mar 1, 2026

Fixes issue #149. The browser tool was discarding successfully-fetched page content when screenshot capture failed. Screenshot is a non-critical side-effect used only for logging, so failures should be logged as warnings without affecting the primary content fetch operation.

Changes:

  • ContentMD: Log screenshot error as warning instead of returning error
  • ContentHTML: Log screenshot error as warning instead of returning error
  • Links: Log screenshot error as warning instead of returning error

All three methods now return valid content with empty screenshot name when screenshot fails, rather than returning an error and discarding the content.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant