Skip to content

Commit 22b38d2

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 ce34461 commit 22b38d2

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
@@ -1213,14 +1213,6 @@ export class Task extends EventEmitter<ClineEvents> {
12131213
console.error(`Error during task ${this.taskId}.${this.instanceId} disposal:`, error)
12141214
// Don't rethrow - we want abort to always succeed
12151215
}
1216-
// Save the countdown message in the automatic retry or other content.
1217-
try {
1218-
await this.modifyClineMessages(async () => {
1219-
return this.clineMessages
1220-
})
1221-
} catch (error) {
1222-
console.error(`Error saving messages during abort for task ${this.taskId}.${this.instanceId}:`, error)
1223-
}
12241216
}
12251217

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

0 commit comments

Comments
 (0)