Skip to content

Commit fa08b02

Browse files
authored
Merge pull request microsoft#185694 from microsoft/merogge/cue-fix
always cancel looping cue
2 parents b92985d + e14f03f commit fa08b02

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vs/workbench/contrib/chat/browser/chatWidget.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,11 +408,12 @@ export class ChatWidget extends Disposable implements IChatWidget {
408408
if (result) {
409409
this.inputPart.acceptInput(query);
410410
result.responseCompletePromise.then(async () => {
411-
412411
const responses = this.viewModel?.getItems().filter(isResponseVM);
413412
const lastResponse = responses?.[responses.length - 1];
414413
this._chatAccessibilityService.acceptResponse(lastResponse);
415414
});
415+
} else {
416+
this._chatAccessibilityService.acceptResponse();
416417
}
417418
}
418419
}
@@ -519,7 +520,7 @@ export class ChatWidgetService implements IChatWidgetService {
519520
}
520521

521522

522-
const CHAT_RESPONSE_PENDING_AUDIO_CUE_LOOP_MS = 7000;
523+
const CHAT_RESPONSE_PENDING_AUDIO_CUE_LOOP_MS = 5000;
523524
export class ChatAccessibilityService extends Disposable implements IChatAccessibilityService {
524525

525526
declare readonly _serviceBrand: undefined;

0 commit comments

Comments
 (0)