mirror of
https://github.com/crabwise-ai/crabwalk.git
synced 2026-08-14 00:57:52 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user