Skip to content

Commit 780ee86

Browse files
authored
Merge branch 'main' into aamunger/streamingOutput
2 parents a094993 + b9dbd1b commit 780ee86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ export class ChatAccessibilityService extends Disposable implements IChatAccessi
3838
const isPanelChat = typeof response !== 'string';
3939
this._responsePendingAudioCue?.dispose();
4040
this._runOnceScheduler?.cancel();
41-
if (this._lastResponse === response?.toString()) {
41+
const responseContent = typeof response === 'string' ? response : response?.response.value;
42+
if (this._lastResponse === responseContent) {
4243
return;
4344
}
44-
this._lastResponse = response?.toString();
4545
this._audioCueService.playAudioCue(AudioCue.chatResponseReceived, true);
4646
this._hasReceivedRequest = false;
4747
if (!response) {
4848
return;
4949
}
5050
const errorDetails = isPanelChat && response.errorDetails ? ` ${response.errorDetails.message}` : '';
51-
const content = isPanelChat ? response.response.value : response;
52-
status(content + errorDetails);
51+
this._lastResponse = responseContent;
52+
status(responseContent + errorDetails);
5353
}
5454
}

0 commit comments

Comments
 (0)