From a5e49698ec4c22ff8d1227cdfc30f4b67752f454 Mon Sep 17 00:00:00 2001 From: luccast <2213102+luccast@users.noreply.github.com> Date: Sun, 25 Jan 2026 21:58:04 -0500 Subject: [PATCH] Remove unnecessary console logging in ActionGraph and enhance Clawdbot parser to skip irrelevant lifecycle events - Eliminated debug logging for session not found cases in ActionGraph to reduce console noise. - Updated Clawdbot parser to skip lifecycle/internal events that do not belong to a session, improving event handling efficiency. --- src/components/monitor/ActionGraph.tsx | 2 -- src/integrations/clawdbot/parser.ts | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/monitor/ActionGraph.tsx b/src/components/monitor/ActionGraph.tsx index 2f4ba75..2ef6433 100644 --- a/src/components/monitor/ActionGraph.tsx +++ b/src/components/monitor/ActionGraph.tsx @@ -133,8 +133,6 @@ export function ActionGraph({ markerEnd: { type: MarkerType.ArrowClosed }, style: { stroke: '#6b7280' }, }) - } else { - console.log('[graph] session not found for action:', first.sessionKey, 'available:', [...sessionNodeIds]) } // Connect actions in sequence diff --git a/src/integrations/clawdbot/parser.ts b/src/integrations/clawdbot/parser.ts index a0764f7..d8af092 100644 --- a/src/integrations/clawdbot/parser.ts +++ b/src/integrations/clawdbot/parser.ts @@ -128,6 +128,10 @@ export function parseEventFrame( if (frame.event === 'agent' && frame.payload) { const agentEvent = frame.payload as AgentEvent + // Skip lifecycle/internal events that don't belong to a session + if (!agentEvent.stream || agentEvent.stream === 'lifecycle') { + return null + } return { action: agentEventToAction(agentEvent), }