Fix trace spans

This commit is contained in:
Siddharth Ganesan
2026-01-27 11:21:42 -08:00
parent 5c1e620831
commit d38fb29e05
2 changed files with 4 additions and 2 deletions

View File

@@ -233,7 +233,9 @@ export class DAGExecutor {
userId: this.contextExtensions.userId,
isDeployedContext: this.contextExtensions.isDeployedContext,
blockStates: state.getBlockStates(),
blockLogs: snapshotState?.blockLogs ?? [],
// For run-from-block, start with empty logs - we only want fresh execution logs for trace spans
// The snapshot's blockLogs are preserved separately for history
blockLogs: overrides?.runFromBlockContext ? [] : (snapshotState?.blockLogs ?? []),
metadata: {
...this.contextExtensions.metadata,
startTime: new Date().toISOString(),

View File

@@ -1,4 +1,4 @@
import type { RdsExecuteParams, RdsExecuteResponse } from '@/tools/rds/types'
import type { RdsExecuteParams, RdsExecuteResponse } from '@/tools/rds/types'
import type { ToolConfig } from '@/tools/types'
export const executeTool: ToolConfig<RdsExecuteParams, RdsExecuteResponse> = {