diff --git a/.changeset/silly-zebras-applaud.md b/.changeset/silly-zebras-applaud.md new file mode 100644 index 0000000000..b140729ba1 --- /dev/null +++ b/.changeset/silly-zebras-applaud.md @@ -0,0 +1,5 @@ +--- +"claude-dev": minor +--- + +Releasing memory after every diff edit to help fix grey screen webview crashes diff --git a/src/integrations/editor/DiffViewProvider.ts b/src/integrations/editor/DiffViewProvider.ts index 5e0e80b455..89d1842a55 100644 --- a/src/integrations/editor/DiffViewProvider.ts +++ b/src/integrations/editor/DiffViewProvider.ts @@ -433,6 +433,8 @@ export class DiffViewProvider { // close editor if open? async reset() { + // releasing memory by clearing the diff editor + await this.closeAllDiffViews() this.editType = undefined this.isEditing = false this.originalContent = undefined