diff --git a/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts b/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts index eb42a9bde57..e9d5aa5d6a1 100644 --- a/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts +++ b/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts @@ -1417,6 +1417,8 @@ export class InlineChatController2 implements IEditorContribution { return; } + responseListener.value = undefined; // listen only ONCE + const shouldShow = response.isCanceled // cancelled || response.result?.errorDetails // errors || !response.response.value.find(part => part.kind === 'textEditGroup'