From ffe9898fd3d211d109f2bc16be99542bfe7e4be2 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Wed, 21 Jan 2026 11:15:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=BB=A5=E8=B7=9F=E8=B8=AA=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E7=8A=B6=E6=80=81=E5=92=8C=E9=92=A9=E5=AD=90?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ccw/src/core/routes/cli-routes.ts | 8 ++++++++ ccw/src/core/routes/hooks-routes.ts | 1 + 2 files changed, 9 insertions(+) diff --git a/ccw/src/core/routes/cli-routes.ts b/ccw/src/core/routes/cli-routes.ts index 34c70f47..eaec37fb 100644 --- a/ccw/src/core/routes/cli-routes.ts +++ b/ccw/src/core/routes/cli-routes.ts @@ -87,6 +87,14 @@ export function updateActiveExecution(event: { }): void { const { type, executionId, tool, mode, prompt, output, success } = event; + // Debug log for troubleshooting + console.log(`[ActiveExec] ${type}: ${executionId} (current count: ${activeExecutions.size})`); + + if (!executionId) { + console.warn('[ActiveExec] Missing executionId, skipping'); + return; + } + if (type === 'started') { // Create new active execution activeExecutions.set(executionId, { diff --git a/ccw/src/core/routes/hooks-routes.ts b/ccw/src/core/routes/hooks-routes.ts index a2cad079..cd4ef20e 100644 --- a/ccw/src/core/routes/hooks-routes.ts +++ b/ccw/src/core/routes/hooks-routes.ts @@ -268,6 +268,7 @@ export async function handleHooksRoutes(ctx: HooksRouteContext): Promise