File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
packages/agent-runtime/src/tools/handlers/tool Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -501,7 +501,6 @@ export const createStreamChunkHandler =
501501export const createEventHandler =
502502 ( state : EventHandlerState ) => ( event : SDKEvent ) => {
503503 return match ( event )
504- . with ( { type : 'text' } , ( e ) => handleTextEvent ( state , e ) )
505504 . with ( { type : 'subagent_start' } , ( e ) => handleSubagentStart ( state , e ) )
506505 . with ( { type : 'subagent_finish' } , ( e ) => handleSubagentFinish ( state , e ) )
507506 . with ( { type : 'tool_call' } , ( e ) => handleToolCall ( state , e ) )
Original file line number Diff line number Diff line change @@ -139,12 +139,10 @@ export const handleSpawnAgents = (async (
139139
140140 if ( chunk . type === 'text' ) {
141141 if ( chunk . text ) {
142- sendSubagentChunk ( {
143- userInputId ,
142+ writeToClient ( {
143+ type : 'text' as const ,
144144 agentId : subAgentState . agentId ,
145- agentType,
146- chunk : chunk . text ,
147- prompt,
145+ text : chunk . text ,
148146 } )
149147 }
150148 return
You can’t perform that action at this time.
0 commit comments