From f00d5d9e1fe090e706453c96d3840e38eb5d062f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:42:40 +0000 Subject: [PATCH 1/4] Initial plan From 77726798698fc04116958f4ca66d1d8a0747632c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:55:26 +0000 Subject: [PATCH 2/4] Include model info in chat input aria label Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com> --- .../contrib/chat/browser/chatInputPart.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/contrib/chat/browser/chatInputPart.ts b/src/vs/workbench/contrib/chat/browser/chatInputPart.ts index 1d41e1380cb63..ed554df9ef3b3 100644 --- a/src/vs/workbench/contrib/chat/browser/chatInputPart.ts +++ b/src/vs/workbench/contrib/chat/browser/chatInputPart.ts @@ -520,6 +520,9 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge if (this._currentLanguageModel?.metadata.name) { this.accessibilityService.alert(this._currentLanguageModel.metadata.name); } + if (this._inputEditor) { + this._inputEditor.updateOptions({ ariaLabel: this._getAriaLabel() }); + } })); this._register(this.chatModeService.onDidChangeChatModes(() => this.validateCurrentChatMode())); this._register(autorun(r => { @@ -797,6 +800,11 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge if (verbose) { kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel(); } + + // Include model information if available + const modelName = this._currentLanguageModel?.metadata.name; + const modelInfo = modelName ? localize('chatInput.model', "Using {0}. ", modelName) : ''; + let modeLabel = ''; switch (this.currentModeKind) { case ChatModeKind.Agent: @@ -812,10 +820,10 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge } if (verbose) { return kbLabel - ? localize('actions.chat.accessibiltyHelp', "Chat Input {0} Press Enter to send out the request. Use {1} for Chat Accessibility Help.", modeLabel, kbLabel) - : localize('chatInput.accessibilityHelpNoKb', "Chat Input {0} Press Enter to send out the request. Use the Chat Accessibility Help command for more information.", modeLabel); + ? localize('actions.chat.accessibiltyHelp', "Chat Input {0}{1} Press Enter to send out the request. Use {2} for Chat Accessibility Help.", modelInfo, modeLabel, kbLabel) + : localize('chatInput.accessibilityHelpNoKb', "Chat Input {0}{1} Press Enter to send out the request. Use the Chat Accessibility Help command for more information.", modelInfo, modeLabel); } else { - return localize('chatInput.accessibilityHelp', "Chat Input {0}.", modeLabel); + return localize('chatInput.accessibilityHelp', "Chat Input {0}{1}.", modelInfo, modeLabel); } } From 427450db5c7bdcf7a34945e5ea3d28d9a81f0050 Mon Sep 17 00:00:00 2001 From: meganrogge Date: Mon, 27 Oct 2025 10:23:54 -0400 Subject: [PATCH 3/4] make less verbose --- src/vs/workbench/contrib/chat/browser/chatInputPart.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/contrib/chat/browser/chatInputPart.ts b/src/vs/workbench/contrib/chat/browser/chatInputPart.ts index b68cca91d86a2..aec3d265c5e4b 100644 --- a/src/vs/workbench/contrib/chat/browser/chatInputPart.ts +++ b/src/vs/workbench/contrib/chat/browser/chatInputPart.ts @@ -800,11 +800,11 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge if (verbose) { kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel(); } - + // Include model information if available const modelName = this._currentLanguageModel?.metadata.name; - const modelInfo = modelName ? localize('chatInput.model', "Using {0}. ", modelName) : ''; - + const modelInfo = modelName ? localize('chatInput.model', ", {0}. ", modelName) : ''; + let modeLabel = ''; switch (this.currentModeKind) { case ChatModeKind.Agent: From 4b58c03be3c030fec899b27747ec17d1170689ea Mon Sep 17 00:00:00 2001 From: Megan Rogge Date: Mon, 27 Oct 2025 10:43:20 -0400 Subject: [PATCH 4/4] Update src/vs/workbench/contrib/chat/browser/chatInputPart.ts Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com> --- src/vs/workbench/contrib/chat/browser/chatInputPart.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/vs/workbench/contrib/chat/browser/chatInputPart.ts b/src/vs/workbench/contrib/chat/browser/chatInputPart.ts index aec3d265c5e4b..5d72b222d234d 100644 --- a/src/vs/workbench/contrib/chat/browser/chatInputPart.ts +++ b/src/vs/workbench/contrib/chat/browser/chatInputPart.ts @@ -520,9 +520,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge if (this._currentLanguageModel?.metadata.name) { this.accessibilityService.alert(this._currentLanguageModel.metadata.name); } - if (this._inputEditor) { - this._inputEditor.updateOptions({ ariaLabel: this._getAriaLabel() }); - } + this._inputEditor?.updateOptions({ ariaLabel: this._getAriaLabel() }); })); this._register(this.chatModeService.onDidChangeChatModes(() => this.validateCurrentChatMode())); this._register(autorun(r => {