Files
crewAI/lib
Devin AI 0d553f5c62 fix: preserve original task IDs after replay
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>
2025-11-30 10:07:38 +00:00
..