We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0209df9 commit 12e33abCopy full SHA for 12e33ab
src/core/task/Task.ts
@@ -809,6 +809,15 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
809
this.clineMessages = newMessages
810
restoreTodoListForTask(this)
811
await this.saveClineMessages()
812
+
813
+ // When overwriting messages (e.g., during task resume), repopulate the cloud sync tracking Set
814
+ // with timestamps from all non-partial messages to prevent re-syncing previously synced messages
815
+ this.cloudSyncedMessageTimestamps.clear()
816
+ for (const msg of newMessages) {
817
+ if (msg.partial !== true) {
818
+ this.cloudSyncedMessageTimestamps.add(msg.ts)
819
+ }
820
821
}
822
823
private async updateClineMessage(message: ClineMessage) {
0 commit comments