fix: gate run event traces behind --verbose

This commit is contained in:
YeonGyu-Kim
2026-02-17 14:34:22 +09:00
parent 94dc6f14f5
commit 873c29f3d9
5 changed files with 64 additions and 4 deletions
+6 -2
View File
@@ -24,11 +24,15 @@ export async function processEvents(
try {
const payload = event as EventPayload
if (!payload?.type) {
console.error(pc.dim(`[event] no type: ${JSON.stringify(event)}`))
if (ctx.verbose) {
console.error(pc.dim(`[event] no type: ${JSON.stringify(event)}`))
}
continue
}
logEventVerbose(ctx, payload)
if (ctx.verbose) {
logEventVerbose(ctx, payload)
}
handleSessionError(ctx, payload, state)
handleSessionIdle(ctx, payload, state)