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 = [