mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-11 07:00:48 +08:00
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 <cursoragent@cursor.com>
This commit is contained in:
parent
a3365b77fa
commit
c938147fdb
2 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue