From 97b93c44fa0644c700004e800711d28286309d51 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Sun, 9 Nov 2025 19:04:41 -0800 Subject: [PATCH 01/10] fix: validate config secrets present --- extensions/cli/src/services/MCPService.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/extensions/cli/src/services/MCPService.ts b/extensions/cli/src/services/MCPService.ts index d261621c6..ead1658ea 100644 --- a/extensions/cli/src/services/MCPService.ts +++ b/extensions/cli/src/services/MCPService.ts @@ -15,6 +15,7 @@ import { import { getErrorString } from "../util/error.js"; import { logger } from "../util/logger.js"; +import { TEMPLATE_VAR_REGEX } from "@continuedev/config-yaml"; import { BaseService, ServiceWithDependencies } from "./BaseService.js"; import { serviceContainer } from "./ServiceContainer.js"; import { @@ -249,6 +250,8 @@ export class MCPService this.updateState(); try { + this.validateConfigSecrets(serverConfig); + const client = await this.getConnectedClient(serverConfig); connection.client = client; @@ -352,6 +355,25 @@ export class MCPService this.updateState(); } + public validateConfigSecrets(serverConfig: MCPServerConfig): void { + const configString = JSON.stringify(serverConfig); + const unresolvedSecrets: string[] = []; + + let match; + const regex = new RegExp(TEMPLATE_VAR_REGEX); + while ((match = regex.exec(configString)) !== null) { + const fullPath = match[1]; + const secretName = fullPath.split(/[./]+/).pop() || fullPath; + unresolvedSecrets.push(secretName); + } + + if (unresolvedSecrets.length > 0) { + throw new Error( + `${serverConfig.name} MCP Server has unresolved secrets: ${unresolvedSecrets.join(", ")}`, + ); + } + } + /** * Shutdown a single connection */ From 2688fc9f6dd8ab7f964fd3fa9900279c7093e09e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Sun, 9 Nov 2025 19:54:36 -0800 Subject: [PATCH 02/10] fix: CLI warnings/errors for unresolved MCP secrets --- core/config/yaml/loadYaml.ts | 17 --------- core/context/mcp/MCPConnection.ts | 17 +++++++++ extensions/cli/src/services/MCPService.ts | 42 +++++++++++------------ 3 files changed, 37 insertions(+), 39 deletions(-) diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index 44af239df..40821bb04 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -9,7 +9,6 @@ import { ModelRole, PackageIdentifier, RegistryClient, - TEMPLATE_VAR_REGEX, unrollAssistant, validateConfigYaml, } from "@continuedev/config-yaml"; @@ -237,22 +236,6 @@ export async function configYamlToContinueConfig(options: { sourceFile: doc.sourceFile, })); - config.mcpServers?.forEach((mcpServer) => { - if ("args" in mcpServer) { - const mcpArgVariables = - mcpServer.args?.filter((arg) => TEMPLATE_VAR_REGEX.test(arg)) ?? []; - - if (mcpArgVariables.length === 0) { - return; - } - - localErrors.push({ - fatal: false, - message: `MCP server "${mcpServer.name}" has unsubstituted variables in args: ${mcpArgVariables.join(", ")}. Please refer to https://docs.continue.dev/hub/secrets/secret-types for managing hub secrets.`, - }); - } - }); - // Prompt files - try { const promptFiles = await getAllPromptFiles(ide, undefined, true); diff --git a/core/context/mcp/MCPConnection.ts b/core/context/mcp/MCPConnection.ts index 4090e92c5..80fea95bb 100644 --- a/core/context/mcp/MCPConnection.ts +++ b/core/context/mcp/MCPConnection.ts @@ -2,6 +2,10 @@ import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { Transport } from "@modelcontextprotocol/sdk/shared/transport.js"; import { fileURLToPath } from "url"; +import { + decodeSecretLocation, + getTemplateVariables, +} from "@continuedev/config-yaml"; import { SSEClientTransport, SseError, @@ -163,6 +167,19 @@ class MCPConnection { } } + const vars = getTemplateVariables(JSON.stringify(this.options)); + const unrendered = vars.map((v) => { + return decodeSecretLocation(v.replace("secrets.", "")).secretName; + }); + + if (unrendered.length > 0) { + this.errors.push( + `${this.options.name} MCP Server has unresolved secrets: ${unrendered.join(", ")}. +For personal use you can set the secret in the hub at https://hub.continue.dev/settings/secrets. +Org-level secrets can only be used for MCP by Background Agents (https://docs.continue.dev/hub/agents/overview) when \"Include in Env\" is enabled.`, + ); + } + this.connectionPromise = Promise.race([ // If aborted by a refresh or other, cancel and don't do anything new Promise((resolve) => { diff --git a/extensions/cli/src/services/MCPService.ts b/extensions/cli/src/services/MCPService.ts index ead1658ea..d87926364 100644 --- a/extensions/cli/src/services/MCPService.ts +++ b/extensions/cli/src/services/MCPService.ts @@ -15,7 +15,10 @@ import { import { getErrorString } from "../util/error.js"; import { logger } from "../util/logger.js"; -import { TEMPLATE_VAR_REGEX } from "@continuedev/config-yaml"; +import { + decodeSecretLocation, + getTemplateVariables, +} from "@continuedev/config-yaml"; import { BaseService, ServiceWithDependencies } from "./BaseService.js"; import { serviceContainer } from "./ServiceContainer.js"; import { @@ -249,9 +252,23 @@ export class MCPService this.connections.set(serverName, connection); this.updateState(); - try { - this.validateConfigSecrets(serverConfig); + const vars = getTemplateVariables(JSON.stringify(serverConfig)); + const unrendered = vars.map((v) => { + return decodeSecretLocation(v.replace("secrets.", "")).secretName; + }); + if (unrendered.length > 0) { + const message = `${serverConfig.name} MCP Server has unresolved secrets: ${unrendered.join(", ")} +For personal use you can set the secret in the hub at https://hub.continue.dev/settings/secrets or pass it to the CLI environment. +Org-level secrets can only be used for MCP by Background Agents (https://docs.continue.dev/hub/agents/overview) when \"Include in Env\" is enabled for the secret.`; + if (this.isHeadless) { + throw new Error(message); + } else { + connection.warnings.push(message); + } + } + + try { const client = await this.getConnectedClient(serverConfig); connection.client = client; @@ -355,25 +372,6 @@ export class MCPService this.updateState(); } - public validateConfigSecrets(serverConfig: MCPServerConfig): void { - const configString = JSON.stringify(serverConfig); - const unresolvedSecrets: string[] = []; - - let match; - const regex = new RegExp(TEMPLATE_VAR_REGEX); - while ((match = regex.exec(configString)) !== null) { - const fullPath = match[1]; - const secretName = fullPath.split(/[./]+/).pop() || fullPath; - unresolvedSecrets.push(secretName); - } - - if (unresolvedSecrets.length > 0) { - throw new Error( - `${serverConfig.name} MCP Server has unresolved secrets: ${unresolvedSecrets.join(", ")}`, - ); - } - } - /** * Shutdown a single connection */ From 86ed8e964dfd37e5298b0072b78fffc14d0b2fe8 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Sun, 9 Nov 2025 19:56:07 -0800 Subject: [PATCH 03/10] fix: allow unrendered secrets error to set mcp status to error --- extensions/cli/src/services/MCPService.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/extensions/cli/src/services/MCPService.ts b/extensions/cli/src/services/MCPService.ts index d87926364..5ab03010b 100644 --- a/extensions/cli/src/services/MCPService.ts +++ b/extensions/cli/src/services/MCPService.ts @@ -257,18 +257,18 @@ export class MCPService return decodeSecretLocation(v.replace("secrets.", "")).secretName; }); - if (unrendered.length > 0) { - const message = `${serverConfig.name} MCP Server has unresolved secrets: ${unrendered.join(", ")} + try { + if (unrendered.length > 0) { + const message = `${serverConfig.name} MCP Server has unresolved secrets: ${unrendered.join(", ")} For personal use you can set the secret in the hub at https://hub.continue.dev/settings/secrets or pass it to the CLI environment. Org-level secrets can only be used for MCP by Background Agents (https://docs.continue.dev/hub/agents/overview) when \"Include in Env\" is enabled for the secret.`; - if (this.isHeadless) { - throw new Error(message); - } else { - connection.warnings.push(message); + if (this.isHeadless) { + throw new Error(message); + } else { + connection.warnings.push(message); + } } - } - try { const client = await this.getConnectedClient(serverConfig); connection.client = client; From c7210d1f454b8856d28be64775ef428b9b1a988e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 17 Nov 2025 15:01:11 -0800 Subject: [PATCH 04/10] fix: lint --- extensions/cli/src/services/MCPService.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/cli/src/services/MCPService.ts b/extensions/cli/src/services/MCPService.ts index e2a7a6c76..acf4a764a 100644 --- a/extensions/cli/src/services/MCPService.ts +++ b/extensions/cli/src/services/MCPService.ts @@ -1,3 +1,7 @@ +import { + decodeSecretLocation, + getTemplateVariables, +} from "@continuedev/config-yaml"; import { type AssistantConfig } from "@continuedev/sdk"; import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { @@ -15,10 +19,6 @@ import { import { getErrorString } from "../util/error.js"; import { logger } from "../util/logger.js"; -import { - decodeSecretLocation, - getTemplateVariables, -} from "@continuedev/config-yaml"; import { BaseService, ServiceWithDependencies } from "./BaseService.js"; import { serviceContainer } from "./ServiceContainer.js"; import { From 90f52a3b0e0f89db2fca69f3c9118af3ccb1e8f1 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 17 Nov 2025 15:03:22 -0800 Subject: [PATCH 05/10] fix: another tweak --- core/context/mcp/MCPConnection.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/context/mcp/MCPConnection.ts b/core/context/mcp/MCPConnection.ts index 80fea95bb..88d709703 100644 --- a/core/context/mcp/MCPConnection.ts +++ b/core/context/mcp/MCPConnection.ts @@ -169,7 +169,12 @@ class MCPConnection { const vars = getTemplateVariables(JSON.stringify(this.options)); const unrendered = vars.map((v) => { - return decodeSecretLocation(v.replace("secrets.", "")).secretName; + const stripped = v.replace("secrets.", ""); + try { + return decodeSecretLocation(stripped).secretName; + } catch { + return stripped; + } }); if (unrendered.length > 0) { From 7decd43d1c79b3f45b96693a087e60cb1f4b38ae Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Wed, 19 Nov 2025 19:22:29 +0530 Subject: [PATCH 06/10] fix: plan mode system message should ask user to switch mode --- extensions/cli/src/systemMessage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/cli/src/systemMessage.ts b/extensions/cli/src/systemMessage.ts index 1673914c4..b3277975e 100644 --- a/extensions/cli/src/systemMessage.ts +++ b/extensions/cli/src/systemMessage.ts @@ -171,7 +171,7 @@ export async function constructSystemMessage( // Add plan mode specific instructions if in plan mode if (mode === "plan") { systemMessage += - '\nYou are operating in _Plan Mode_, which means that your goal is to help the user investigate their ideas and develop a plan before taking action. You only have access to read-only tools and should not attempt to circumvent them to write / delete / create files. For example, it is not acceptable to use the Bash tool to write to files.\n'; + '\nYou are operating in _Plan Mode_, which means that your goal is to help the user investigate their ideas and develop a plan before taking action. You only have access to read-only tools and should not attempt to circumvent them to write / delete / create files. Ask the user to switch to agent mode if they want to make changes. For example, it is not acceptable to use the Bash tool to write to files.\n'; } else { // Check if commit signature is disabled via environment variable if (!process.env.CONTINUE_CLI_DISABLE_COMMIT_SIGNATURE) { From b9c04dcdc35539c4f3cb0a4b4fbf81d46812718b Mon Sep 17 00:00:00 2001 From: "continue[bot]" Date: Wed, 19 Nov 2025 14:37:03 +0000 Subject: [PATCH 07/10] docs: update Mission Control Tasks and Inbox documentation - Updated Tasks info to mention team assignment capabilities - Added comprehensive Inbox section with unified view, filtering, ownership, and action features - Documented Sentry and Snyk integration tabs Co-authored-by: bekah-hawrot-weigel Generated with [Continue](https://continue.dev) Co-Authored-By: Continue --- docs/mission-control/index.mdx | 38 ++++++++++++++++++++++++++++++++++ docs/mission-control/tasks.mdx | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/docs/mission-control/index.mdx b/docs/mission-control/index.mdx index 18da8b3e6..e550aaf7d 100644 --- a/docs/mission-control/index.mdx +++ b/docs/mission-control/index.mdx @@ -23,6 +23,44 @@ Mission Control is where developers and teams use Continue to power everyday cod +## Inbox: One Place to Triage, Assign, and Take Action + + +The Inbox is your team's central queue for all AI-powered Tasks, agent activity, and first-class integrations like Sentry and Snyk. It gives developers a shared place to review work, delegate responsibility, and launch follow-up Tasks—all without leaving Mission Control. + + + + + See every incoming Task, Sentry alert, Snyk vulnerability, and workflow output in one place. + + + + Slice the Inbox by Agent, repository, integration, creator, status, or time to surface what matters now. + + + + Assign Sessions to teammates so responsibilities are explicit and reviews move forward. + + + + Launch follow-up Tasks, investigate errors, or generate fixes directly from the Inbox—no context switching. + + + +### First-Class Integration Tabs + +Some signals deserve their own dedicated view. When you connect integrations: + + + + See error events organized by project with occurrences, first/last seen timestamps, and one-click **Solve** actions that launch an Agent to investigate or generate a fix. + + + + Review high-severity vulnerabilities, check CVSS scores, and trigger Agents to patch or upgrade dependencies. + + + ## Monitoring & Insights diff --git a/docs/mission-control/tasks.mdx b/docs/mission-control/tasks.mdx index 19d4a124b..4dd58fb22 100644 --- a/docs/mission-control/tasks.mdx +++ b/docs/mission-control/tasks.mdx @@ -12,7 +12,7 @@ description: "A Task is a unit of work shared between you and an agent. You trig - An agent's capabilities (model, rules, tools, prompt) - Your codebase (repository and branch) - Tasks can be triggered manually, by events, or on a schedule. + Tasks can be triggered manually, by events, or on a schedule, and can be assigned to anyone on your team for review. From 63abf6b43d36fe786559cbf6aa966010b4457a21 Mon Sep 17 00:00:00 2001 From: Aaron Lippold Date: Wed, 19 Nov 2025 17:33:55 -0500 Subject: [PATCH 08/10] fix(openai-adapters): extend auth header override to support x-api-key (#8779) * fix(openai-adapters): extend auth header override to support x-api-key Extends the fix from PR #8684 to handle x-api-key header in addition to Authorization header. Background: - Continue sends duplicate auth headers where the first is malformed - PR #8684 fixed this for Authorization header - Same issue affects x-api-key header used by some OpenAI-compatible APIs Changes: - Rename function to letRequestOptionsOverrideAuthHeaders (more generic) - Check for both Authorization AND x-api-key in requestOptions.headers - Remove default headers if custom ones are provided - Handles Headers object, array, and plain object formats Impact: - Fixes authentication with APIs that use x-api-key header - Enables use of MITRE AIP and similar enterprise endpoints - Maintains backward compatibility with existing configs Related: #7047 (duplicate headers bug) Extends: #8684 (Authorization header fix) Tested-with: MITRE AIP endpoints using x-api-key authentication Authored by: Aaron Lippold * test(openai-adapters): add tests for auth header override fix Add comprehensive tests for the customFetch auth header override functionality: - Test Authorization header override - Test x-api-key header override - Test Headers object handling - Test array of tuples handling - Test case-insensitive matching - Test no override when requestOptions empty All tests pass. Related: #7047, #8684 Authored by: Aaron Lippold * test: update to structural tests per reviewer feedback Changed from integration tests to structural/smoke tests that verify the customFetch function behavior without complex fetch stack mocking. Tests now verify: - Function exports and structure - Returns callable functions - Handles all requestOptions variations - Doesn't throw on edge cases - Case-insensitive header handling Per reviewer feedback, this avoids false confidence from incomplete integration tests while still validating the function works correctly. Related: Reviewer feedback on PR #8779 * ci: add GitHub Actions to publish MITRE CLI package Automates building and publishing the patched Continue CLI: - Builds on push to mitre branch - Publishes to GitHub Package Registry as @mitre/continue-cli - Creates release artifacts - Uploads distribution tarball Team can install via: npm install -g @mitre/continue-cli --registry=https://npm.pkg.github.com Or download tarball from releases. Authored by: Aaron Lippold * chore: remove MITRE-specific workflow from upstream PR This workflow is for MITRE fork only, not needed in upstream. Authored by: Aaron Lippold * fix(openai-adapters): correct Responses API model detection regex The RESPONSES_MODEL_REGEX was too broad, matching any model starting with "o" (e.g., "openai/gpt-oss-120b"). This caused Continue to incorrectly use the Responses API for non-reasoning models. Changed regex from /^(?:gpt-5|gpt-5-codex|o)/i to /^(?:gpt-5|gpt-5-codex|o[0-9])/i to only match: - gpt-5, gpt-5-codex (GPT-5 series) - o1, o3, o4, etc. (OpenAI O-series reasoning models) This prevents false positives for model names like: - openai/gpt-oss-120b (Cloudflare Workers AI model) - ollama/... (Ollama models) - Any other model with provider prefix starting with "o" Tested with openai/gpt-oss-120b - now correctly uses /v1/chat/completions instead of /v1/responses. Authored by: Aaron Lippold --- .../src/apis/openaiResponses.ts | 2 +- .../test/customFetch-auth-override.vitest.ts | 89 +++++++++++++++++++ packages/openai-adapters/src/util.ts | 57 +++++++----- 3 files changed, 127 insertions(+), 21 deletions(-) create mode 100644 packages/openai-adapters/src/test/customFetch-auth-override.vitest.ts diff --git a/packages/openai-adapters/src/apis/openaiResponses.ts b/packages/openai-adapters/src/apis/openaiResponses.ts index 997651be4..7ba622284 100644 --- a/packages/openai-adapters/src/apis/openaiResponses.ts +++ b/packages/openai-adapters/src/apis/openaiResponses.ts @@ -34,7 +34,7 @@ import { ResponseUsage, } from "openai/resources/responses/responses.js"; -const RESPONSES_MODEL_REGEX = /^(?:gpt-5|gpt-5-codex|o)/i; +const RESPONSES_MODEL_REGEX = /^(?:gpt-5|gpt-5-codex|o[0-9])/i; export function isResponsesModel(model: string): boolean { return !!model && RESPONSES_MODEL_REGEX.test(model); diff --git a/packages/openai-adapters/src/test/customFetch-auth-override.vitest.ts b/packages/openai-adapters/src/test/customFetch-auth-override.vitest.ts new file mode 100644 index 000000000..f355ea0b0 --- /dev/null +++ b/packages/openai-adapters/src/test/customFetch-auth-override.vitest.ts @@ -0,0 +1,89 @@ +import { describe, expect, it } from "vitest"; +import { customFetch } from "../util.js"; + +/** + * Tests for the letRequestOptionsOverrideAuthHeaders function in customFetch + * + * This function removes duplicate Authorization and x-api-key headers when + * custom headers are provided in requestOptions.headers. + * + * The logic being tested: + * 1. If requestOptions.headers contains Authorization or x-api-key + * 2. Remove those headers from init.headers (sent by OpenAI SDK) + * 3. Let fetchwithRequestOptions merge in the custom headers + * 4. Results in single, correct header (not duplicate) + */ +describe("customFetch - auth header override logic", () => { + it("should export customFetch function", () => { + expect(typeof customFetch).toBe("function"); + }); + + it("should return a function when called", () => { + const result = customFetch({ + headers: { "x-api-key": "test" }, + }); + expect(typeof result).toBe("function"); + }); + + it("should handle requestOptions with Authorization header", () => { + const result = customFetch({ + headers: { Authorization: "Bearer custom-token" }, + }); + expect(typeof result).toBe("function"); + }); + + it("should handle requestOptions with x-api-key header", () => { + const result = customFetch({ + headers: { "x-api-key": "custom-key" }, + }); + expect(typeof result).toBe("function"); + }); + + it("should handle requestOptions with both auth headers", () => { + const result = customFetch({ + headers: { + Authorization: "Bearer custom-token", + "x-api-key": "custom-key", + }, + }); + expect(typeof result).toBe("function"); + }); + + it("should handle empty requestOptions", () => { + const result = customFetch({}); + expect(typeof result).toBe("function"); + }); + + it("should handle undefined requestOptions", () => { + const result = customFetch(undefined); + expect(typeof result).toBe("function"); + }); + + it("should handle case variations in header names", () => { + // lowercase authorization + const result1 = customFetch({ + headers: { authorization: "Bearer custom" }, + }); + expect(typeof result1).toBe("function"); + + // uppercase X-Api-Key + const result2 = customFetch({ + headers: { "X-Api-Key": "custom" }, + }); + expect(typeof result2).toBe("function"); + }); +}); + +/** + * Note: Full integration testing of the header override logic requires + * mocking the entire fetch stack (@continuedev/fetch package) which is + * complex. The above tests verify the function structure and basic behavior. + * + * The actual header removal logic is tested end-to-end by: + * - Manual testing with MITRE AIP endpoints + * - Real-world usage showing duplicate headers are resolved + * + * Related issues: + * - #7047: Duplicate headers bug + * - #8684: Authorization header fix (this extends it) + */ diff --git a/packages/openai-adapters/src/util.ts b/packages/openai-adapters/src/util.ts index 3b33dfb79..a0d352ea0 100644 --- a/packages/openai-adapters/src/util.ts +++ b/packages/openai-adapters/src/util.ts @@ -159,34 +159,51 @@ export function customFetch( return patchedFetch; } - function letRequestOptionsOverrideAuthorizationHeader(init: any): any { - if ( - !init || - !init.headers || - !requestOptions || - !requestOptions.headers || - (!requestOptions.headers["Authorization"] && - !requestOptions.headers["authorization"]) - ) { + function letRequestOptionsOverrideAuthHeaders(init: any): any { + if (!init || !init.headers || !requestOptions || !requestOptions.headers) { return init; } - if (init.headers instanceof Headers) { - init.headers.delete("Authorization"); - } else if (Array.isArray(init.headers)) { - init.headers = init.headers.filter( - (header: [string, string]) => - (header[0] ?? "").toLowerCase() !== "authorization", - ); - } else if (typeof init.headers === "object") { - delete init.headers["Authorization"]; - delete init.headers["authorization"]; + // Check if custom Authorization or x-api-key headers are provided + const hasCustomAuth = + requestOptions.headers["Authorization"] || + requestOptions.headers["authorization"]; + const hasCustomXApiKey = + requestOptions.headers["x-api-key"] || + requestOptions.headers["X-Api-Key"]; + + // Remove default auth headers if custom ones are provided + if (hasCustomAuth || hasCustomXApiKey) { + if (init.headers instanceof Headers) { + if (hasCustomAuth) { + init.headers.delete("Authorization"); + } + if (hasCustomXApiKey) { + init.headers.delete("x-api-key"); + } + } else if (Array.isArray(init.headers)) { + init.headers = init.headers.filter((header: [string, string]) => { + const headerLower = (header[0] ?? "").toLowerCase(); + if (hasCustomAuth && headerLower === "authorization") return false; + if (hasCustomXApiKey && headerLower === "x-api-key") return false; + return true; + }); + } else if (typeof init.headers === "object") { + if (hasCustomAuth) { + delete init.headers["Authorization"]; + delete init.headers["authorization"]; + } + if (hasCustomXApiKey) { + delete init.headers["x-api-key"]; + delete init.headers["X-Api-Key"]; + } + } } return init; } return (req: URL | string | Request, init?: any) => { - init = letRequestOptionsOverrideAuthorizationHeader(init); + init = letRequestOptionsOverrideAuthHeaders(init); if (typeof req === "string" || req instanceof URL) { return fetchwithRequestOptions(req, init, requestOptions); } else { From 05cce29d20b3905d3046a71576551a03a48a9ba3 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 19 Nov 2025 15:27:29 -0800 Subject: [PATCH 09/10] fix: remove dead isTelemetryEnabled code for jetbrains (#8799) --- core/config/profile/doLoadConfig.ts | 7 ++++++- .../continueintellijextension/constants/MessageTypes.kt | 1 - .../continue/IdeProtocolClient.kt | 5 ----- .../continueintellijextension/continue/IntelliJIde.kt | 4 ---- .../github/continuedev/continueintellijextension/types.kt | 2 -- 5 files changed, 6 insertions(+), 13 deletions(-) diff --git a/core/config/profile/doLoadConfig.ts b/core/config/profile/doLoadConfig.ts index 97011a77c..f33c8a1e9 100644 --- a/core/config/profile/doLoadConfig.ts +++ b/core/config/profile/doLoadConfig.ts @@ -348,7 +348,12 @@ export default async function doLoadConfig(options: { } }); - if (newConfig.allowAnonymousTelemetry !== false) { + // VS Code has an IDE telemetry setting + // Since it's a security concern we use OR behavior on false + if ( + newConfig.allowAnonymousTelemetry !== false && + ideInfo.ideType === "vscode" + ) { if ((await ide.isTelemetryEnabled()) === false) { newConfig.allowAnonymousTelemetry = false; } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt index 9254537e2..534985a65 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt @@ -4,7 +4,6 @@ class MessageTypes { companion object { val IDE_MESSAGE_TYPES = listOf( "readRangeInFile", - "isTelemetryEnabled", "getUniqueId", "getDiff", "getTerminalContents", diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt index 7acb4c995..d9bd1dd95 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt @@ -162,11 +162,6 @@ class IdeProtocolClient( respond(contents) } - "isTelemetryEnabled" -> { - val isEnabled = ide.isTelemetryEnabled() - respond(isEnabled) - } - "readRangeInFile" -> { val params = gsonService.gson.fromJson( dataElement.toString(), diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt index 97230ebdb..7d6eaedab 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt @@ -191,10 +191,6 @@ class IntelliJIDE( return mapOf("text" to text) } - override suspend fun isTelemetryEnabled(): Boolean { - return true - } - override suspend fun isWorkspaceRemote(): Boolean { return this.getIdeInfo().remoteName != "local" } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt index 19d7c1200..b0537c3b6 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt @@ -166,8 +166,6 @@ interface IDE { suspend fun getClipboardContent(): Map - suspend fun isTelemetryEnabled(): Boolean - suspend fun isWorkspaceRemote(): Boolean suspend fun getUniqueId(): String From 90d54f3f66fbfc4844329eff45fbc4706a5e9cd4 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 19 Nov 2025 15:27:43 -0800 Subject: [PATCH 10/10] chore: jetgrains 1.0.55 (#8806) fix: gradle properties --- extensions/intellij/gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index 2fd1ea6b8..6b994decf 100644 --- a/extensions/intellij/gradle.properties +++ b/extensions/intellij/gradle.properties @@ -1,5 +1,5 @@ pluginGroup=com.github.continuedev.continueintellijextension -pluginVersion=1.0.52 +pluginVersion=1.0.55 platformVersion=2024.1 kotlin.stdlib.default.dependency=false org.gradle.configuration-cache=true