Skip to content

Conversation

@abhishekkapoorx
Copy link

Description

This change updates the file-reading logic to open files in a more permissive mode so that decoding errors are ignored. This allows the agent to read a wider variety of file formats—especially those not encoded in UTF-8—without raising exceptions during tool execution.

Issue

Fixes behavior where the agent would crash while reading files containing invalid UTF-8 bytes or non-UTF-8 encodings.

Change file opening mode to ignore errors while reading. Making file reading operation to read vast file formats with different encodings. fix: This function was throwing error when trying to read file during agent operation with file format other than "utf-8"
@github-actions github-actions bot added the fix label Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant