From c10eacceeb5cc625dfc27fca9963937561977fbf Mon Sep 17 00:00:00 2001 From: li Date: Tue, 20 Jan 2026 19:42:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E8=BF=9B=E7=A8=8B=E6=B8=85=E7=90=86=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=B9=B6=E6=9B=B4=E6=96=B0=20darwin-arm64=20=E4=BA=8C=E8=BF=9B?= =?UTF-8?q?=E5=88=B6=20(v1.7.46)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复 openBrowser 函数僵尸进程问题 - 新增 darwin-arm64 预编译二进制 - 正确清理浏览器子进程防止资源泄露 Fixes: #issue-windows-heredoc-error --- codeagent-wrapper/server.go | 13 ++++++++++++- package.json | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/codeagent-wrapper/server.go b/codeagent-wrapper/server.go index acccc9d..b03bf25 100644 --- a/codeagent-wrapper/server.go +++ b/codeagent-wrapper/server.go @@ -128,7 +128,18 @@ func openBrowser(url string) { default: return } - _ = cmd.Start() + + // FIX: Properly clean up browser process to prevent zombie processes + // Start the command and wait for it to complete in a goroutine + if err := cmd.Start(); err != nil { + // Silently fail if browser can't be opened + return + } + + // Clean up process in background to prevent zombie processes + go func() { + _ = cmd.Wait() + }() } // StartSession starts tracking a new session diff --git a/package.json b/package.json index ebadff0..ba5a90f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ccg-workflow", - "version": "1.7.45", + "version": "1.7.46", "description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流", "type": "module", "packageManager": "pnpm@10.17.1",