From 1d22da86ac9c23a74dcbb80d5a825691def7f304 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 5 Aug 2026 18:02:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E6=8E=89=20git=20=E5=89=8D?= =?UTF-8?q?=E7=BC=80=E8=AF=AF=E5=89=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/cockpit_chat.dspy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/api/cockpit_chat.dspy b/wwwroot/api/cockpit_chat.dspy index 263b341..0d67525 100644 --- a/wwwroot/api/cockpit_chat.dspy +++ b/wwwroot/api/cockpit_chat.dspy @@ -879,7 +879,7 @@ if action == 'send_message': description = intent.get('description', '') or message_text # 去掉中文前缀("执行命令:"、"运行:"等) import re - description = re.sub(r'^(执行命令[::]|运行[::]|git\s+)', '', description.strip()) + description = re.sub(r'^(执行命令[::]|运行[::])', '', description.strip()) workdir = ctx.get('workspace_dir', '') or '/d/pipeline/workspaces' result = await shell_exec(description, workdir=workdir) if result['rc'] == 0: