Skip to content

Commit c77b63e

Browse files
authored
Accept cell chat response before running follow up (microsoft#203271)
1 parent 82d1ae4 commit c77b63e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,12 @@ export class NotebookCellChatController extends Disposable {
379379
const followups = await this._activeSession.provider.provideFollowups(this._activeSession.session, replyResponse.raw, followupCts.token);
380380
if (followups && this._widget) {
381381
const widget = this._widget;
382-
widget.updateFollowUps(followups, followup => {
382+
widget.updateFollowUps(followups, async followup => {
383383
if (followup.kind === 'reply') {
384384
widget.value = followup.message;
385385
this.acceptInput();
386386
} else {
387+
await this.acceptSession();
387388
this._commandService.executeCommand(followup.commandId, ...(followup.args ?? []));
388389
}
389390
});

0 commit comments

Comments
 (0)