From 2591102ca9abd768e29935ec5461ca254c90a402 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Wed, 15 Apr 2026 11:43:01 -0700 Subject: [PATCH] fix(logs): store workflowInput unredacted to preserve retry fidelity workflowInput is internal execution data used for replay, same as executionState which is also stored unredacted. Redacting at storage time corrupts the data for retry use cases. Co-Authored-By: Claude Opus 4.6 --- apps/sim/lib/logs/execution/logger.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/sim/lib/logs/execution/logger.ts b/apps/sim/lib/logs/execution/logger.ts index f7b298a131..acca8db01c 100644 --- a/apps/sim/lib/logs/execution/logger.ts +++ b/apps/sim/lib/logs/execution/logger.ts @@ -372,9 +372,6 @@ export class ExecutionLogger implements IExecutionLoggerService { ? Math.max(0, Math.round(rawDurationMs)) : 0 - const redactedWorkflowInput = - workflowInput !== undefined ? redactApiKeys(filterForDisplay(workflowInput)) : undefined - const completedExecutionData = this.buildCompletedExecutionData({ existingExecutionData, traceSpans: redactedTraceSpans, @@ -383,7 +380,7 @@ export class ExecutionLogger implements IExecutionLoggerService { completionFailure, executionCost, executionState, - workflowInput: redactedWorkflowInput, + workflowInput, }) const [updatedLog] = await db