From b9c4b3068fd14fdaf1c8f388cdb3dc0ba3654b6d Mon Sep 17 00:00:00 2001 From: cthomas Date: Mon, 9 Mar 2026 19:32:15 -0700 Subject: [PATCH] fix: reasoning ui for auto models (#1316) --- src/cli/App.tsx | 6 ++++-- src/websocket/listen-client.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index f948a09..5997295 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -1562,8 +1562,10 @@ export default function App({ }, [currentModelLabel, derivedReasoningEffort, llmConfig]); const currentModelProvider = llmConfig?.provider_name ?? null; const currentReasoningEffort: ModelReasoningEffort | null = - derivedReasoningEffort ?? - inferReasoningEffortFromModelPreset(currentModelId, currentModelLabel); + currentModelLabel?.startsWith("letta/auto") + ? null + : (derivedReasoningEffort ?? + inferReasoningEffortFromModelPreset(currentModelId, currentModelLabel)); // Billing tier for conditional UI and error context (fetched once on mount) const [billingTier, setBillingTier] = useState(null); diff --git a/src/websocket/listen-client.ts b/src/websocket/listen-client.ts index 487dfa7..c9ee9fd 100644 --- a/src/websocket/listen-client.ts +++ b/src/websocket/listen-client.ts @@ -2544,7 +2544,7 @@ async function handleIncomingMessage( onStatusChange?.("processing", connectionId); } - let messagesToSend: Array = []; + const messagesToSend: Array = []; let turnToolContextId: string | null = null; let queuedInterruptedToolCallIds: string[] = [];