From d8cd86361e507f530ee3e32d745fef3ca5bb82f9 Mon Sep 17 00:00:00 2001 From: Roe-xin Date: Sun, 4 Jan 2026 14:10:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E7=8E=AF=E5=A2=83=E7=9A=84=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=BB=A5=E6=8E=A7=E5=88=B6=E5=BF=AB=E9=80=9F=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/webviewContent.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/webviewContent.ts b/src/views/webviewContent.ts index 61a0995..47a2633 100644 --- a/src/views/webviewContent.ts +++ b/src/views/webviewContent.ts @@ -18,6 +18,7 @@ import { getMessageAreaScript, } from "./messageArea"; import { getAgentCardStyles, getAgentCardScript } from "./agentCard"; +import { getCurrentEnv } from "../config/settings"; /** * 获取 WebView 面板的 HTML 内容 */ @@ -28,6 +29,10 @@ export function getWebviewContent( syIconUri?: string, maxIconUri?: string ): string { + // 获取当前环境,只在 dev 和 test 环境下显示快速操作按钮 + const currentEnv = getCurrentEnv(); + const showQuickActions = currentEnv === 'dev' || currentEnv === 'test'; + return ` @@ -397,12 +402,12 @@ export function getWebviewContent( 思考中... - + ` : ''} ${getInputAreaContent(autoIconUri, liteIconUri, syIconUri, maxIconUri)}