how can we improve the messages streaming for the agent task assignment to exclude…
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
how can we improve the messages streaming for the agent task assignment to exclude system messages?: [system] Claude Code 2.1.71 initialized Now let me explore the codebase to understand the current notification and settings infrastructure.[system] task_started [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress [system] task_progress
Assistant
Let me explore the relevant streaming and proxy code to understand how messages flow.
Assistant
Now let me read the specific file that generates these system messages.
Assistant
The issue is clear. In
event-bridge.ts:211-230,transformSystemMessageconverts every SDK system message into anagent_tokenevent — including noisy ones likeinitandtask_progress/task_startedthat just become[system] task_progress\n.The fix is simple: filter out non-informational system subtypes instead of forwarding them all as visible tokens.
Assistant
Now let me update the unit test to cover this filtering.
Assistant
Now let me add tests for the system message suppression.
Assistant
All 23 tests pass. Here's what changed:
app/src/server/orchestrator/event-bridge.ts—transformSystemMessagenow suppresses noisy system subtypes (init,task_started,task_progress) via aSUPPRESSED_SYSTEM_SUBTYPESset, returningundefinedso they produce noagent_tokenevents. Error subtypes likemcp_server_errorand unknown subtypes still surface.tests/unit/coding-agent-orchestrator/event-bridge.test.ts— Added 5 tests covering suppression of each noisy subtype and continued surfacing of errors and unknown subtypes.- User
commit
Assistant
Committed
1f0f977— suppresses noisy[system]messages from the agent task stream.