{"record":{"id":"2e9fc02f28d27840","repo":"microsoft/vscode","slug":"the-settings-github-copilot-chat-anthropic-tools","errorCode":null,"errorMessage":"The settings `github.copilot.chat.anthropic.tools.websearch.allowedDomains` and `github.copilot.chat.anthropic.tools.websearch.blockedDomains` cannot be used together. Please configure only one.","messagePattern":"The settings `github\\.copilot\\.chat\\.anthropic\\.tools\\.websearch\\.allowedDomains` and `github\\.copilot\\.chat\\.anthropic\\.tools\\.websearch\\.blockedDomains` cannot be used together\\. Please configure only one\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"extensions/copilot/src/extension/byok/vscode-node/anthropicProvider.ts","lineNumber":283,"sourceCode":"\t\t\tconst params: Anthropic.Beta.Messages.MessageCreateParamsStreaming = {\n\t\t\t\tmodel: model.id,\n\t\t\t\tmessages: convertedMessages,\n\t\t\t\tmax_tokens: model.maxOutputTokens,\n\t\t\t\tstream: true,\n\t\t\t\tsystem: [system],\n\t\t\t\ttools: tools.length > 0 ? tools : undefined,\n\t\t\t\tthinking: supportsAdaptiveThinking\n\t\t\t\t\t? { type: 'adaptive' as const }\n\t\t\t\t\t: thinkingBudget ? { type: 'enabled' as const, budget_tokens: thinkingBudget } : undefined,\n\t\t\t\t...(effort ? { output_config: { effort } } : {}),\n\t\t\t\tcontext_management: contextManagement as Anthropic.Beta.Messages.BetaContextManagementConfig | undefined,\n\t\t\t};\n\n\t\t\tconst wrappedProgress = new RecordedProgress(progress);\n\n\t\t\ttry {\n\t\t\t\tif (webSearchDomainConflictError) {\n\t\t\t\t\tthrow new Error(webSearchDomainConflictError);\n\t\t\t\t}\n\t\t\t\tconst result = await this._makeRequest(anthropicClient, wrappedProgress, params, betas, token, issuedTime);\n\t\t\t\tif (result.ttft) {\n\t\t\t\t\tpendingLoggedChatRequest.markTimeToFirstToken(result.ttft);\n\t\t\t\t}\n\t\t\t\tconst responseDeltas: IResponseDelta[] = wrappedProgress.items.map((i): IResponseDelta => {\n\t\t\t\t\tif (i instanceof LanguageModelTextPart) {\n\t\t\t\t\t\treturn { text: i.value };\n\t\t\t\t\t} else if (i instanceof LanguageModelToolCallPart) {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\ttext: '',\n\t\t\t\t\t\t\tcopilotToolCalls: [{\n\t\t\t\t\t\t\t\tname: i.name,\n\t\t\t\t\t\t\t\targuments: JSON.stringify(i.input),\n\t\t\t\t\t\t\t\tid: i.callId\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t};\n\t\t\t\t\t} else if (i instanceof LanguageModelToolResultPart) {","sourceCodeStart":265,"sourceCodeEnd":301,"githubUrl":"https://github.com/microsoft/vscode/blob/a94b963a32aa9749d69504576791fa29700ae46d/extensions/copilot/src/extension/byok/vscode-node/anthropicProvider.ts#L265-L301","documentation":"Error \"The settings `github.copilot.chat.anthropic.tools.websearch.allowedDomains` and `github.copilot.chat.anthropic.tools.websearch.blockedDomains` cannot be used together. Please configure only one.\" thrown in microsoft/vscode.","triggerScenarios":"Thrown at extensions/copilot/src/extension/byok/vscode-node/anthropicProvider.ts:283 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"a94b963a32aa9749d69504576791fa29700ae46d","analyzedAt":"2026-08-12T01:08:56.794Z","schemaVersion":2},"datasetVersion":"2026-08-12T06:17:24.410Z"}