From 0092e6ab765c56c961879f3e911d17f3d4b67b72 Mon Sep 17 00:00:00 2001 From: jnjpng Date: Wed, 4 Mar 2026 17:53:08 -0800 Subject: [PATCH] fix(tui): don't clear conversation model override on transient retrieve errors (#1269) Co-authored-by: Letta Code --- src/cli/App.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index dc0192a..f83ddcc 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -3376,7 +3376,13 @@ export default function App({ "Failed to sync conversation model override: %O", error, ); - applyAgentModelLocally(); + // Preserve current local state on transient errors — the override flag + // was set by a successful /model write and should not be cleared by a + // failed read. The next sync cycle will retry and self-correct. + debugLog( + "conversation-model", + "Keeping current model state after sync error (override in DB is authoritative)", + ); } };