File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
backend/src/tools/handlers/tool Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export const handleSpawnAgentsAsync = ((params: {
7777 localAgentTemplates,
7878 agentState,
7979 } = validateSpawnState ( state , 'spawn_agents_async' )
80- const { sendSubagentChunk, system } = state
80+ const { sendSubagentChunk, system : parentSystemPrompt } = state
8181
8282 if ( ! sendSubagentChunk ) {
8383 throw new Error (
@@ -108,6 +108,7 @@ export const handleSpawnAgentsAsync = ((params: {
108108
109109 const asyncAgentState = createAgentState (
110110 agentType ,
111+ agentTemplate ,
111112 agentState ,
112113 subAgentMessages ,
113114 { } ,
@@ -138,7 +139,7 @@ export const handleSpawnAgentsAsync = ((params: {
138139 localAgentTemplates,
139140 userId,
140141 clientSessionId,
141- parentSystemPrompt : system ,
142+ parentSystemPrompt,
142143 onResponseChunk : ( chunk : string | PrintModeEvent ) => {
143144 if ( typeof chunk !== 'string' ) {
144145 return
You can’t perform that action at this time.
0 commit comments