diff --git a/src/vs/workbench/contrib/chat/browser/chatInputPart.ts b/src/vs/workbench/contrib/chat/browser/chatInputPart.ts index 150d24d4d8ab7..5d72b222d234d 100644 --- a/src/vs/workbench/contrib/chat/browser/chatInputPart.ts +++ b/src/vs/workbench/contrib/chat/browser/chatInputPart.ts @@ -520,6 +520,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge if (this._currentLanguageModel?.metadata.name) { this.accessibilityService.alert(this._currentLanguageModel.metadata.name); } + this._inputEditor?.updateOptions({ ariaLabel: this._getAriaLabel() }); })); this._register(this.chatModeService.onDidChangeChatModes(() => this.validateCurrentChatMode())); this._register(autorun(r => { @@ -797,6 +798,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', ", {0}. ", modelName) : ''; + let modeLabel = ''; switch (this.currentModeKind) { case ChatModeKind.Agent: @@ -812,10 +818,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); } }