Add separator banners to TOOL USE, AGENT START, and ERROR events#26
Merged
galuszkm merged 2 commits intoApr 12, 2026
Merged
Conversation
- Add `self._magenta` (bright magenta \033[95m]) ANSI color in __init__ - Add TOOL USE separator banner (magenta) to _handle_tool_start - Add AGENT START separator banner (magenta) to _handle_agent_start - Add ERROR separator banner (red) to _handle_error - Reset _active_agent in _handle_tool_start for proper mode transitions - Add tests verifying separator text appears in rendered output Agent-Logs-Url: https://github.com/strands-compose/sdk-python/sessions/fa2d145b-5b66-4434-b1d2-eadf0473f279 Co-authored-by: galuszkm <53984802+galuszkm@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add separator banners for tool use, agent start, and error events
Add separator banners to TOOL USE, AGENT START, and ERROR events
Apr 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AnsiRendereronly showed separator banners for REASONING and RESPONDING mode transitions. TOOL USE, AGENT START, and ERROR events rendered as plain status lines, making them hard to spot in dense multi-agent output.Changes
ansi.py—__init__: Addself._magenta(\033[95m]) for transition/action eventsansi.py—_handle_tool_start: AddTOOL USEseparator (magenta), reset_active_agentansi.py—_handle_agent_start: AddAGENT STARTseparator (magenta)ansi.py—_handle_error: AddERRORseparator (red)test_ansi.py: Verify separator text appears for all three event typesColor scheme
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
astral.sh/usr/bin/curl curl -LsSf REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either: