Skip to content

Conversation

@abaw
Copy link
Contributor

@abaw abaw commented Jul 21, 2025

  • Without this fix, if the contents of the file containing things like incomplete bracket pairs, then will we get an exception.

Description

When working with some log files, I noticed file_read occasionally failed due to bracket characters in the logs. After tracing the code, I thought we should escape the strings before printing it out to the console which will do rendering according to markup in the strings.

Related Issues

Documentation PR

Type of Change

  • Bug fix
  • New Tool
  • Breaking change
  • Other (please describe):

Testing

[How have you tested the change?]

  • hatch fmt --linter
  • hatch fmt --formatter
  • hatch test --all
    • One test failed: ERROR tests/test_a2a_client.py. But this is obviously unrelated to my changes.

Checklist

  • I have read the CONTRIBUTING document

  • I have added tests that prove my fix is effective or my feature works

  • I have updated the documentation accordingly

  • I have added an appropriate example to the documentation to outline the feature

  • My changes generate no new warnings

  • Any dependent changes have been merged and published

  • By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Without this fix, if the contents of the file containing things like incomplete bracket
pairs, then will we get an exception.
@abaw abaw requested a review from a team as a code owner July 21, 2025 07:45
Copy link
Member

@cagataycali cagataycali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

@cagataycali cagataycali merged commit 1eab798 into strands-agents:main Jul 22, 2025
14 of 28 checks passed
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.

2 participants