Skip to content

Commit 6119cb1

Browse files
committed
Update comment
1 parent 901adc5 commit 6119cb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/Cline.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,9 +739,9 @@ export class Cline {
739739
this.urlContentFetcher.closeBrowser()
740740
this.browserSession.closeBrowser()
741741

742+
// If we're not streaming then `abortStream` (which reverts the diff
743+
// view changes) won't be called, so we need to revert the changes here.
742744
if (this.isStreaming && this.diffViewProvider.isEditing) {
743-
// Need to await for when we want to make sure directories/files are
744-
// reverted before re-starting the task from a checkpoint.
745745
await this.diffViewProvider.revertChanges()
746746
}
747747
}

0 commit comments

Comments
 (0)