From 428871b993bd7328d4a72ef179759e741c59c349 Mon Sep 17 00:00:00 2001 From: cthomas Date: Wed, 4 Feb 2026 16:38:06 -0800 Subject: [PATCH] fix: pass conversation_id to /download command (#824) Co-authored-by: Letta --- src/cli/App.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index 7a857f0..5fd69a4 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -6711,7 +6711,17 @@ export default function App({ try { const client = await getClient(); - const fileContent = await client.agents.exportFile(agentId); + + // Pass conversation_id if we're in a specific conversation (not default) + const exportParams: { conversation_id?: string } = {}; + if (conversationId !== "default") { + exportParams.conversation_id = conversationId; + } + + const fileContent = await client.agents.exportFile( + agentId, + exportParams, + ); const fileName = `${agentId}.af`; writeFileSync(fileName, JSON.stringify(fileContent, null, 2));