Never show _getGenerateInstructionsMessage when locked to a coding agent (#272349)

do not show _getGenerateInstructionsMessage when locked to a coding agent
This commit is contained in:
Josh Spicer
2025-10-20 14:33:24 -07:00
committed by GitHub
parent 986516b4bf
commit 705c8a2977
@@ -1092,7 +1092,7 @@ export class ChatWidget extends Disposable implements IChatWidget {
let welcomeContent: IChatViewWelcomeContent;
const defaultAgent = this.chatAgentService.getDefaultAgent(this.location, this.input.currentModeKind);
let additionalMessage = defaultAgent?.metadata.additionalWelcomeMessage;
if (!additionalMessage) {
if (!additionalMessage && !this._lockedAgent) {
additionalMessage = this._getGenerateInstructionsMessage();
}
if (this.shouldShowChatSetup()) {