diff --git a/packages/tm-core/src/storage/file-storage/file-storage.ts b/packages/tm-core/src/storage/file-storage/file-storage.ts index 06e93144..fffb970d 100644 --- a/packages/tm-core/src/storage/file-storage/file-storage.ts +++ b/packages/tm-core/src/storage/file-storage/file-storage.ts @@ -379,6 +379,14 @@ export class FileStorage implements IStorage { } const oldStatus = parentTask.subtasks[subtaskIndex].status || 'pending'; + if (oldStatus === newStatus) { + return { + success: true, + oldStatus, + newStatus, + taskId: subtaskId + }; + } // Update the subtask status parentTask.subtasks[subtaskIndex] = {