Skip to content

Commit f739034

Browse files
committed
Fix types
1 parent 25e41b0 commit f739034

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backend/src/tools/handlers/tool/spawn-agents-async.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)