Skip to content

Commit f4ad2d1

Browse files
waleedlatif1claude
andcommitted
fix(traces): guard toolCalls fallback path for condition blocks on old logs
The else branch that extracts toolCalls from log.output also needs a condition block guard, otherwise old persisted logs with leaked toolCalls from the source agent would render on the condition span. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f7249d6 commit f4ad2d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/lib/logs/execution/trace-spans/trace-spans.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export function buildTraceSpans(result: ExecutionResult): {
322322
}
323323
}
324324
)
325-
} else {
325+
} else if (!isConditionBlockType(log.blockType)) {
326326
let toolCallsList = null
327327

328328
try {

0 commit comments

Comments
 (0)