From accedb59b75f84556217e8b8ffde202c78812a9e Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Thu, 25 Dec 2025 21:37:52 +0900 Subject: [PATCH] debug(cli): add event logging to diagnose realtime streaming in CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- src/cli/run/events.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/cli/run/events.ts b/src/cli/run/events.ts index fe0613d..4d0e095 100644 --- a/src/cli/run/events.ts +++ b/src/cli/run/events.ts @@ -36,7 +36,12 @@ export async function processEvents( try { const payload = event as EventPayload - if (!payload?.type) continue + if (!payload?.type) { + console.error(pc.dim(`[event] no type: ${JSON.stringify(event)}`)) + continue + } + + console.error(pc.dim(`[event] ${payload.type}`)) handleSessionIdle(ctx, payload, state) handleSessionStatus(ctx, payload, state) @@ -44,7 +49,9 @@ export async function processEvents( handleMessageUpdated(ctx, payload, state) handleToolExecute(ctx, payload, state) handleToolResult(ctx, payload, state) - } catch {} + } catch (err) { + console.error(pc.red(`[event error] ${err}`)) + } } }