Voice: terminal controller is not behaving like view/inline (fix #208791) (#208800)

This commit is contained in:
Benjamin Pasero 2024-03-26 17:04:13 +01:00 committed by GitHub
parent 3574756bf4
commit 1a2cc56282
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -261,6 +261,7 @@ export class TerminalChatController extends Disposable implements ITerminalContr
throw new Error('Could not start chat session');
}
}
this._messages.fire(Message.ACCEPT_INPUT);
const model = this._model.value;
this._lastInput = this._chatWidget?.value?.input();
@ -326,7 +327,6 @@ export class TerminalChatController extends Disposable implements ITerminalContr
this._chatWidget?.value.inlineChatWidget.updateChatMessage({ message: new MarkdownString(responseContent), requestId: this._currentRequest.id, providerId: 'terminal' }, false, containsCode);
this._responseContainsCodeBlockContextKey.set(containsCode);
this._chatWidget?.value.inlineChatWidget.updateToolbar(true);
this._messages.fire(Message.ACCEPT_INPUT);
}
const supportIssueReporting = this._currentRequest?.response?.agent?.metadata?.supportIssueReporting;
if (supportIssueReporting !== undefined) {