mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-20 23:57:11 -04:00
[PR #156] [CLOSED] Fix browser tool to not discard content when screenshot fails #199
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/pentagi/pull/156
Author: @04cb
Created: 3/1/2026
Status: ❌ Closed
Base:
master← Head:fix/browser-tool-screenshot-error-handling📝 Commits (1)
2a55600Fix browser tool to not discard content when screenshot fails📊 Changes
1 file changed (+6 additions, -3 deletions)
View changed files
📝
backend/pkg/tools/browser.go(+6 -3)📄 Description
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:
All three methods now return valid content with empty screenshot name when screenshot fails, rather than returning an error and discarding the content.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.