Не подтверждена Коммит 93e08afe создал по автору Justin Chen's avatar Justin Chen Зафиксировано автором GitHub
Просмотр файлов

fix input widget appearing before request is fully submitted (#277989)

fix disposed input widget appearing before request is fully submitted
владелец af29d352
......@@ -2466,6 +2466,11 @@ export class ChatWidget extends Disposable implements IChatWidget {
const isUserQuery = !query;
if (this.viewModel?.editing) {
this.finishedEditing(true);
this.viewModel.model?.setCheckpoint(undefined);
}
// process the prompt command
await this._applyPromptFileIfSet(requestInputs);
await this._autoAttachInstructions(requestInputs);
......@@ -2554,10 +2559,6 @@ export class ChatWidget extends Disposable implements IChatWidget {
this.currentRequest = undefined;
});
if (this.viewModel?.editing) {
this.finishedEditing(true);
this.viewModel.model?.setCheckpoint(undefined);
}
return result.responseCreatedPromise;
}
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать