From 0b66a5093800120b732bf00dd38e296cd83f44f3 Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Fri, 29 May 2026 12:00:46 -0400 Subject: [PATCH] feat(thinking): default thinking mode ON Flip the Thinking toggle to default ON: localStorage init now reads !== 'false' (matching the standard default-on idiom), and both desktop and mobile buttons render green "Thinking: ON" by default. Users opt out to save tokens; the OFF path still drives server-side enable_thinking=false. --- templates/base.html | 4 ++-- templates/chat.html | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/base.html b/templates/base.html index 74fba9e..a43bf57 100644 --- a/templates/base.html +++ b/templates/base.html @@ -104,8 +104,8 @@
-
diff --git a/templates/chat.html b/templates/chat.html index f9c3eb7..6c077b9 100644 --- a/templates/chat.html +++ b/templates/chat.html @@ -60,8 +60,8 @@
-
@@ -153,12 +153,12 @@ let autoPlayTTS = localStorage.getItem('autoPlayTTS') === 'true' || false; let ttsQueue = []; let isPlayingTTS = false; -// Thinking-mode state. Default OFF. When OFF we send enable_thinking=false +// Thinking-mode state. Default ON. When OFF we send enable_thinking=false // with each chat_message so the server asks the model (Qwen3-style) to skip // chain-of-thought entirely — saving tokens, not just hiding output. As a // fallback, any reasoning_content that still arrives is dropped client-side // (see message_chunk handler). Toggle persists to localStorage. -let showThinking = localStorage.getItem('showThinking') === 'true'; +let showThinking = localStorage.getItem('showThinking') !== 'false'; // Vision model state for auto alt-text let visionAvailable = false; @@ -1294,7 +1294,7 @@ function updateShowThinkingDisplay() { } } -// Toggle reasoning_content display. Off by default; persisted in localStorage. +// Toggle thinking mode. On by default; persisted in localStorage. function toggleShowThinking() { showThinking = !showThinking; localStorage.setItem('showThinking', showThinking.toString());