From bf9126de43188862d2b757dd950a5c79986439ce Mon Sep 17 00:00:00 2001 From: hcyang Date: Thu, 14 May 2026 15:45:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E4=BF=AE=E6=AD=A3=20reasoningEffort?= =?UTF-8?q?=20=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改模型切换消息内容,基于thinkingEnabled状态显示reasoningEffort - 调整欢迎界面中Reasoning Effort的显示,当thinkingEnabled为false时显示“-” --- src/ui/App.tsx | 2 +- src/ui/WelcomeScreen.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/App.tsx b/src/ui/App.tsx index a569dc3..6526bb3 100644 --- a/src/ui/App.tsx +++ b/src/ui/App.tsx @@ -278,7 +278,7 @@ export function App({ projectRoot, version = "", onRestart }: AppProps): React.R const meta: MessageMeta = { isModelChange: true, }; - const content = `/model\n└ Set model to ${selection.model} (${selection?.reasoningEffort || "no thinking"})`; + const content = `/model\n└ Set model to ${selection.model} (${selection?.thinkingEnabled ? selection?.reasoningEffort : "no thinking"})`; if (activeSessionId) { sessionManager.addSessionSystemMessage(activeSessionId, content, meta); diff --git a/src/ui/WelcomeScreen.tsx b/src/ui/WelcomeScreen.tsx index 5e25379..3d82eed 100644 --- a/src/ui/WelcomeScreen.tsx +++ b/src/ui/WelcomeScreen.tsx @@ -68,7 +68,7 @@ export function WelcomeScreen({ {!compact ? : null} - +