mirror of
https://github.com/crewAIInc/crewAI.git
synced 2025-12-16 12:28:30 +00:00
Fixes #3999 When replaying a task, the original task ID was being overwritten in storage with the new task ID from the replayed crew instance. This made it impossible to replay the same task again using the original ID. The fix removes the task_id field from the update operation during replay, so the original task ID is preserved in storage. This allows users to replay the same task multiple times using the original ID. Changes: - Modified TaskOutputStorageHandler.update() to not update task_id when was_replayed is True - Added test_replay_preserves_original_task_id_after_replay to verify the fix Co-Authored-By: João <joao@crewai.com>