fix: filter streaming content to hide bracket tool calls
**The Problem:**
Bracket-format tool calls like [USE write tool: ...] were showing
to users in the stream before being extracted and executed.
**Root Cause:**
on_stream_chunk() was displaying content directly without filtering.
Only complete (non-streaming) content went through safeguards.
**The Fix:**
Apply agent.safeguards.filter_stream_chunk() to streaming content
before appending to StreamingText widget.
**What This Fixes:**
- Bracket tool calls no longer visible to users
- Code blocks removed from stream in real-time
- JSON tool attempts filtered out as they're generated
- Cleaner, more professional output during streaming
Bracket-format tool calls like [USE write tool: ...] were showing
to users in the stream before being extracted and executed.
**Root Cause:**
on_stream_chunk() was displaying content directly without filtering.
Only complete (non-streaming) content went through safeguards.
**The Fix:**
Apply agent.safeguards.filter_stream_chunk() to streaming content
before appending to StreamingText widget.
**What This Fixes:**
- Bracket tool calls no longer visible to users
- Code blocks removed from stream in real-time
- JSON tool attempts filtered out as they're generated
- Cleaner, more professional output during streaming
- SHA
dafa5bcbfa7f7716389962edd0f60650a9bc48d1- Parents
-
750735d - Tree
de8fd82