diff --git a/src/vs/workbench/contrib/chat/browser/chatViewPane.ts b/src/vs/workbench/contrib/chat/browser/chatViewPane.ts index aa2655cba87..68fb88bd71a 100644 --- a/src/vs/workbench/contrib/chat/browser/chatViewPane.ts +++ b/src/vs/workbench/contrib/chat/browser/chatViewPane.ts @@ -115,7 +115,7 @@ export class ChatViewPane extends ViewPane { } override shouldShowWelcome(): boolean { - if (!this.chatAgentService.getDefaultAgent(ChatAgentLocation.Panel)) { + if (!this.chatAgentService.getContributedDefaultAgent(ChatAgentLocation.Panel)) { return true; } diff --git a/src/vs/workbench/contrib/chat/common/chatAgents.ts b/src/vs/workbench/contrib/chat/common/chatAgents.ts index f565b5b9266..5725b2b0850 100644 --- a/src/vs/workbench/contrib/chat/common/chatAgents.ts +++ b/src/vs/workbench/contrib/chat/common/chatAgents.ts @@ -262,6 +262,7 @@ export class ChatAgentService implements IChatAgentService { }; const entry = { data }; this._agents.set(id, entry); + this._onDidChangeAgents.fire(undefined); return toDisposable(() => { this._agents.delete(id); if (data.isDefault) {