From 7efef92dfd402c300dd76679c16d4ea336ac9082 Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Sat, 21 Feb 2026 13:07:10 -0800 Subject: [PATCH] fix: use default conversation for freshly created subagents (LET-7643) (#1087) Co-authored-by: Letta --- src/headless.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/headless.ts b/src/headless.ts index 9ab1451..faf29ea 100644 --- a/src/headless.ts +++ b/src/headless.ts @@ -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).