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.
This commit is contained in:
luccast
2026-01-25 21:58:04 -05:00
parent 3ff4d294a5
commit a5e49698ec
2 changed files with 4 additions and 2 deletions
-2
View File
@@ -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
+4
View File
@@ -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),
}