fix: use default conversation for freshly created subagents (LET-7643) (#1087)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-02-21 13:07:10 -08:00
committed by GitHub
parent e3f1ca84ed
commit 7efef92dfd

View File

@@ -1018,6 +1018,10 @@ export async function handleHeadlessCommand(
isolated_block_labels: isolatedBlockLabels,
});
conversationId = conversation.id;
} else if (isSubagent) {
// Freshly created subagents have no concurrency risk — use the default
// conversation so it's easy to inspect in the ADE.
conversationId = "default";
} else {
// Default for headless: always create a new conversation to avoid
// 409 "conversation busy" races (e.g., parent agent calling letta -p).