mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user