From f8f75c50bae5bf4ab34ea10614aaa43e840dcfd8 Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Thu, 22 Jan 2026 22:20:11 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20use=20conversations.messages.compact=20i?= =?UTF-8?q?nstead=20of=20agents.messages.co=E2=80=A6=20(#653)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Letta --- src/cli/App.tsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index c31bab5..d79e15a 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -5127,14 +5127,9 @@ export default function App({ } const client = await getClient(); - // SDK types are out of date - compact returns CompactionResponse, not void - const result = (await client.agents.messages.compact( - agentId, - )) as unknown as { - num_messages_before: number; - num_messages_after: number; - summary: string; - }; + const result = await client.conversations.messages.compact( + conversationIdRef.current, + ); // Format success message with before/after counts and summary const outputLines = [