case *CurrentWorkflowConditionFailedError,
*WorkflowConditionFailedError,
m.trimHistoryNode(
ctx,
request.ShardID,
resetSnapshot.ExecutionInfo.NamespaceId,
resetSnapshot.ExecutionInfo.WorkflowId,
resetSnapshot.ExecutionState.RunId,
archetypeID,
)
if currentMutation != nil {
m.trimHistoryNode(
ctx,