Skip to content

Commit 757a483

Browse files
author
Eric Wheeler
committed
cleanup: remove redundant save in abortTask
Removes the final `modifyClineMessages` call from `abortTask`. This operation was redundant because all `clineMessages` mutations are already wrapped in atomic transactions, ensuring the on-disk state is always synchronized. This change simplifies the abort logic and avoids a superfluous file write. Signed-off-by: Eric Wheeler <[email protected]>
1 parent c27049d commit 757a483

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/core/task/Task.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,14 +1215,6 @@ export class Task extends EventEmitter<ClineEvents> {
12151215
console.error(`Error during task ${this.taskId}.${this.instanceId} disposal:`, error)
12161216
// Don't rethrow - we want abort to always succeed
12171217
}
1218-
// Save the countdown message in the automatic retry or other content.
1219-
try {
1220-
await this.modifyClineMessages(async () => {
1221-
return this.clineMessages
1222-
})
1223-
} catch (error) {
1224-
console.error(`Error saving messages during abort for task ${this.taskId}.${this.instanceId}:`, error)
1225-
}
12261218
}
12271219

12281220
// Used when a sub-task is launched and the parent task is waiting for it to

0 commit comments

Comments
 (0)