fix: pass conversation_id to /download command (#824)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
cthomas
2026-02-04 16:38:06 -08:00
committed by GitHub
parent 0aa4b407ab
commit 428871b993

View File

@@ -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));