diff --git a/src/vs/workbench/contrib/chat/common/participants/chatAgents.ts b/src/vs/workbench/contrib/chat/common/participants/chatAgents.ts index 25984d05e03..4de51aa176f 100644 --- a/src/vs/workbench/contrib/chat/common/participants/chatAgents.ts +++ b/src/vs/workbench/contrib/chat/common/participants/chatAgents.ts @@ -537,7 +537,7 @@ export class ChatAgentService extends Disposable implements IChatAgentService { setRequestTools(id: string, requestId: string, tools: UserSelectedTools): void { const data = this._agents.get(id); if (!data?.impl) { - throw new Error(`No activated agent with id "${id}"`); + return; } data.impl.setRequestTools?.(requestId, tools);