chat - setup tweaks (#243955)

This commit is contained in:
Benjamin Pasero
2025-03-19 12:43:19 +01:00
committed by GitHub
parent 04de1694d3
commit 0c33dc042a
3 changed files with 88 additions and 55 deletions

View File

@@ -165,7 +165,7 @@ export class InlineChatSessionServiceImpl implements IInlineChatSessionService {
}));
store.add(this._chatAgentService.onDidChangeAgents(e => {
if (e === undefined && (!this._chatAgentService.getAgent(agent.id) || !this._chatAgentService.getActivatedAgents().includes(agent))) {
if (e === undefined && (!this._chatAgentService.getAgent(agent.id) || !this._chatAgentService.getActivatedAgents().map(agent => agent.id).includes(agent.id))) {
this._logService.trace(`[IE] provider GONE for ${editor.getId()}, ${agent.extensionId}`);
this._releaseSession(session, true);
}