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)}