Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/core/webview/ClineProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2730,8 +2730,9 @@ export class ClineProvider
// This ensures the stream fails quickly rather than waiting for network timeout
task.cancelCurrentRequest()

// Begin abort (non-blocking)
task.abortTask()
// Begin abort and wait for messages to be saved to disk
// This ensures history is properly persisted before rehydration
await task.abortTask()

// Immediately mark the original instance as abandoned to prevent any residual activity
task.abandoned = true
Expand Down
Loading