Skip to content

Commit f2a4d8f

Browse files
committed
Don't include available agents as spawnable agents for now
1 parent ec544c6 commit f2a4d8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/agent-runtime/src/main-prompt.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ export async function mainPrompt(
108108
throw new Error(`Agent template not found for type: ${agentType}`)
109109
}
110110

111-
const updatedSubagents = uniq([
112-
...mainAgentTemplate.spawnableAgents,
113-
...availableAgents,
114-
])
111+
const updatedSubagents = agentId
112+
? // Use only the spawnable agents from the main agent template if an agent ID is specified
113+
mainAgentTemplate.spawnableAgents
114+
: uniq([...mainAgentTemplate.spawnableAgents, ...availableAgents])
115115
mainAgentTemplate.spawnableAgents = updatedSubagents
116116
localAgentTemplates[agentType] = mainAgentTemplate
117117

0 commit comments

Comments
 (0)