fix(agent-teams): close latest review gaps for auth and race safety

This commit is contained in:
Nguyen Khac Trung Kien
2026-02-08 09:52:49 +07:00
committed by YeonGyu-Kim
parent 79c3823762
commit 2103061123
5 changed files with 139 additions and 9 deletions
+3 -3
View File
@@ -90,10 +90,10 @@ export async function spawnTeammate(params: SpawnTeammateParams): Promise<TeamTe
throw new Error("teammate_create_failed")
}
ensureInbox(params.teamName, params.name)
sendPlainInboxMessage(params.teamName, "team-lead", params.name, params.prompt, "initial_prompt", teammate.color)
try {
ensureInbox(params.teamName, params.name)
sendPlainInboxMessage(params.teamName, "team-lead", params.name, params.prompt, "initial_prompt", teammate.color)
const resolvedModel = parseModel(params.model)
const launched = await params.manager.launch({
description: `[team:${params.teamName}] ${params.name}`,