From 14d5d5bbf85a9e98c654cc57f21eecf38e9c3548 Mon Sep 17 00:00:00 2001 From: Greyson LaLonde Date: Tue, 7 Apr 2026 00:48:10 +0800 Subject: [PATCH] fix: accumulate all prior task outputs when skipping on checkpoint resume --- lib/crewai/src/crewai/crews/utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/crewai/src/crewai/crews/utils.py b/lib/crewai/src/crewai/crews/utils.py index 3c2973c4c..4077a9a19 100644 --- a/lib/crewai/src/crewai/crews/utils.py +++ b/lib/crewai/src/crewai/crews/utils.py @@ -160,10 +160,8 @@ def prepare_task_execution( # Handle replay skip if start_index is not None and task_index < start_index: if task.output: - if task.async_execution: - task_outputs.append(task.output) - else: - task_outputs = [task.output] + task_outputs.append(task.output) + if not task.async_execution: last_sync_output = task.output return ( TaskExecutionData(agent=None, tools=[], should_skip=True),