From c938147fdb1b63d0b5f9a71a88f316d530baa1dc Mon Sep 17 00:00:00 2001 From: oliver Date: Tue, 12 May 2026 20:29:58 +0800 Subject: [PATCH] fix(chat): default reasoning fold on for new browsers and bump chat.js cache The reasoning/tool collapsed bundle is gated by adminChatShowToolOutput, which was only read from localStorage with default false. A fresh browser therefore hid persisted reasoning in the fold while streaming still showed tokens. Default to true and bump chat.html asset version so deployments pick up the script. Co-authored-by: Cursor --- interfaces/admin/static/chat.html | 2 +- interfaces/admin/static/chat.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/interfaces/admin/static/chat.html b/interfaces/admin/static/chat.html index 67c9b122..880176bd 100644 --- a/interfaces/admin/static/chat.html +++ b/interfaces/admin/static/chat.html @@ -574,7 +574,7 @@ diff --git a/interfaces/admin/static/chat.js b/interfaces/admin/static/chat.js index 9c168406..5bc24a47 100644 --- a/interfaces/admin/static/chat.js +++ b/interfaces/admin/static/chat.js @@ -384,7 +384,8 @@ const CONFIRM_STRATEGY_AUTO = "auto"; const CONFIRM_STRATEGY_OFF = "off"; const PLAN_AGENT_V1 = "v1"; const PLAN_AGENT_V2 = "v2"; -const ADMIN_CHAT_SHOW_TOOL_OUTPUT_DEFAULT = false; +/** Default on: reasoning/tool fold matches streamed behavior; new browsers have no localStorage yet. */ +const ADMIN_CHAT_SHOW_TOOL_OUTPUT_DEFAULT = true; const REASONING_BLOCK_MAX_CHARS = 12000; const CHAT_ENABLE_WIKI_EVENT_POLLER = false; const _rt = String(localStorage.getItem(CHAT_REASONING_TOGGLE_KEY) || "").trim().toLowerCase();