We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa25485 commit 9573aceCopy full SHA for 9573ace
src/vs/workbench/contrib/chat/browser/chatWidget.ts
@@ -538,7 +538,13 @@ export class ChatWidget extends Disposable implements IChatWidget {
538
539
let msg = '';
540
if (e.followup.agentId && e.followup.agentId !== this.chatAgentService.getDefaultAgent(this.location)?.id) {
541
- msg = `${chatAgentLeader}${e.followup.agentId} `;
+ const agent = this.chatAgentService.getAgent(e.followup.agentId);
542
+ if (!agent) {
543
+ return;
544
+ }
545
+
546
+ this.lastSelectedAgent = agent;
547
+ msg = `${chatAgentLeader}${agent.name} `;
548
if (e.followup.subCommand) {
549
msg += `${chatSubcommandLeader}${e.followup.subCommand} `;
550
}
0 commit comments