From c5490d97eaa96cd20b570607d21f4bb4dd39fb9e Mon Sep 17 00:00:00 2001 From: Taras Malinovskii <100197678+Tarasusrus@users.noreply.github.com> Date: Fri, 27 Mar 2026 05:12:38 +0700 Subject: [PATCH 1/5] fix(intellij): handle square brackets in file paths for autocomplete (#11474) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(intellij): handle square brackets in file paths for autocomplete Use File.toURI() instead of URI constructor for Windows two-slash file:// URIs to properly percent-encode special characters like [ ]. Fixes #10978. * test(intellij): strengthen Windows URI assertions for bracket encoding Verify that square brackets are percent-encoded and drive letter and directory structure are preserved in parsed URI path. * fix(intellij): make Windows bracket test cross-platform The CI runs on Linux where C: is not a drive letter. Assert that brackets are encoded and structure is preserved without platform-specific path assumptions. * fix: use cross-platform URI constructor instead of File.toURI() File.toURI() is platform-dependent — on non-Windows hosts it treats Windows drive paths (e.g. C:/Users/...) as relative paths, producing corrupted URIs. The multi-arg URI(scheme, host, path, fragment) constructor is pure RFC 2396 string manipulation and works identically on all platforms. Also strengthens the Windows bracket test with exact equality assertions instead of loose contains/assertFalse checks. * chore: remove verbose comments for minimal diff --------- Co-authored-by: Dallin Romney --- .../continue/UriUtils.kt | 2 +- .../unit/UriUtilsTest.kt | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/UriUtils.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/UriUtils.kt index ca5d0e21b..d2030280f 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/UriUtils.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/UriUtils.kt @@ -26,7 +26,7 @@ object UriUtils { // Handle Windows file paths with authority component if (uriStr.startsWith("file://") && !uriStr.startsWith("file:///")) { val path = uriStr.substringAfter("file://") - return URI("file:///$path") + return URI("file", "", "/$path", null) } return try { diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/UriUtilsTest.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/UriUtilsTest.kt index a718f722b..8295abfe6 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/UriUtilsTest.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/UriUtilsTest.kt @@ -60,4 +60,19 @@ class UriUtilsTest : TestCase() { val expectedFile = File("/path/to/file with spaces") assertEquals(expectedFile, result) } + + // Regression test for #10978 — bracket directories like [gamemode] + fun `test square brackets in path`() { + val uri = "file:///path/to/[gamemode]/file.lua" + val result = UriUtils.uriToFile(uri) + assertEquals(File("/path/to/[gamemode]/file.lua"), result) + } + + fun `test Windows path with square brackets`() { + val uri = "file://C:/Users/user/projects/[gamemode]/file.lua" + val parsed = UriUtils.parseUri(uri) + assertEquals("file", parsed.scheme) + assertEquals("/C:/Users/user/projects/[gamemode]/file.lua", parsed.path) + assertEquals("file:///C:/Users/user/projects/%5Bgamemode%5D/file.lua", parsed.toString()) + } } From a067fedfdc0aa9dbc6ab92599b5ddbd195916b68 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Mar 2026 16:48:22 -0700 Subject: [PATCH 2/5] chore: jb-66-vs-37 (#11909) --- extensions/intellij/gradle.properties | 2 +- extensions/vscode/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index 1bd3f3c9f..02c3fd6e3 100644 --- a/extensions/intellij/gradle.properties +++ b/extensions/intellij/gradle.properties @@ -1,5 +1,5 @@ pluginGroup=com.github.continuedev.continueintellijextension -pluginVersion=1.0.65 +pluginVersion=1.0.66 platformVersion=2024.1 kotlin.stdlib.default.dependency=false org.gradle.configuration-cache=true diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 7730111f0..9e02a4fda 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "1.3.36", + "version": "1.3.37", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From 16a540c3378b833931429db9bcb3ce7c98bd7a36 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Mar 2026 16:52:20 -0700 Subject: [PATCH 3/5] fix: remove Ollama template-based tool support gate (#11905) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: let explicit capabilities.tools override Ollama template tool detection The Ollama provider checks the model template from /api/show for a `.Tools` placeholder to decide whether to pass tools to the API. For newer models (e.g. qwen3.5) whose templates may not yet include `.Tools`, this silently strips tools from the request — even when the user explicitly sets `capabilities: tools: true` in config.yaml. Use nullish coalescing so an explicit capabilities.tools setting always wins, with the template heuristic as a fallback. * remove verbose comments * remove templateSupportsTools check; trust upstream tool support detection * fix: remove extra blank line to pass prettier check --- core/llm/llms/Ollama.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index c9142206a..4bcd9fb1e 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -161,7 +161,7 @@ class Ollama extends BaseLLM implements ModelInstaller { private static modelsBeingInstalledMutex = new Mutex(); private fimSupported: boolean = false; - private templateSupportsTools: boolean | undefined = undefined; + private modelInfoPromise: Promise | undefined = undefined; private explicitContextLength: boolean; @@ -240,11 +240,6 @@ class Ollama extends BaseLLM implements ModelInstaller { * it's a good indication the model supports FIM. */ this.fimSupported = !!body?.template?.includes(".Suffix"); - - // Check if model template supports tool calling (same pattern as .Suffix above) - if (body?.template) { - this.templateSupportsTools = body.template.includes(".Tools"); - } }) .catch((e) => { // console.warn("Error calling the Ollama /api/show endpoint: ", e); @@ -516,12 +511,7 @@ class Ollama extends BaseLLM implements ModelInstaller { stream: options.stream, // format: options.format, // Not currently in base completion options }; - // Only include tools with user messages, and only if the template supports them - if ( - options.tools?.length && - ollamaMessages.at(-1)?.role === "user" && - this.templateSupportsTools !== false - ) { + if (options.tools?.length && ollamaMessages.at(-1)?.role === "user") { chatOptions.tools = options.tools.map((tool) => ({ type: "function", function: { From fd7ade8f3fe8c1ae51190d714fef9821bfb14b59 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Mar 2026 18:19:54 -0700 Subject: [PATCH 4/5] fix: ensure config.yaml exists and is populated when accessed (#11915) * fix: ensure config.yaml exists and is populated when accessed - Opening a config profile (gear icon) now creates config.yaml with defaults if the file is missing, matching startup behavior - Empty config.yaml files are detected and populated with default config instead of causing parse errors * refactor: improve readability of config existence check --- core/config/ConfigHandler.ts | 2 ++ core/util/paths.ts | 15 ++++++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/core/config/ConfigHandler.ts b/core/config/ConfigHandler.ts index 336c4b40b..0b20f557b 100644 --- a/core/config/ConfigHandler.ts +++ b/core/config/ConfigHandler.ts @@ -10,6 +10,7 @@ import { ILLMLogger, } from "../index.js"; import { GlobalContext } from "../util/GlobalContext.js"; +import { getConfigYamlPath } from "../util/paths.js"; import EventEmitter from "node:events"; import { @@ -637,6 +638,7 @@ export class ConfigHandler { } if (profile.profileDescription.profileType === "local") { + getConfigYamlPath(); const configFile = element?.sourceFile ?? profile.profileDescription.uri; await this.ide.openFile(configFile); } else { diff --git a/core/util/paths.ts b/core/util/paths.ts index 122ec2f94..323697f77 100644 --- a/core/util/paths.ts +++ b/core/util/paths.ts @@ -118,15 +118,12 @@ export function getConfigJsonPath(): string { export function getConfigYamlPath(ideType?: IdeType): string { const p = path.join(getContinueGlobalPath(), "config.yaml"); - if (!fs.existsSync(p) && !fs.existsSync(getConfigJsonPath())) { - if (ideType === "jetbrains") { - // https://github.com/continuedev/continue/pull/7224 - // This was here because we had different context provider support between jetbrains and vs code - // Leaving so we could differentiate later but for now configs are the same between IDEs - fs.writeFileSync(p, YAML.stringify(defaultConfig)); - } else { - fs.writeFileSync(p, YAML.stringify(defaultConfig)); - } + const exists = fs.existsSync(p); + const isEmpty = exists && fs.readFileSync(p, "utf8").trim() === ""; + const needsCreation = !exists && !fs.existsSync(getConfigJsonPath()); + + if (needsCreation || isEmpty) { + fs.writeFileSync(p, YAML.stringify(defaultConfig)); setConfigFilePermissions(p); } return p; From d220a2e3702994bc1a6e0a4daed84da67cb1277e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Mar 2026 18:20:04 -0700 Subject: [PATCH 5/5] chore: jb-67-vs-38 (#11916) --- extensions/intellij/gradle.properties | 2 +- extensions/vscode/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index 02c3fd6e3..a3ff59b25 100644 --- a/extensions/intellij/gradle.properties +++ b/extensions/intellij/gradle.properties @@ -1,5 +1,5 @@ pluginGroup=com.github.continuedev.continueintellijextension -pluginVersion=1.0.66 +pluginVersion=1.0.67 platformVersion=2024.1 kotlin.stdlib.default.dependency=false org.gradle.configuration-cache=true diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 9e02a4fda..c2a7f2f1f 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "1.3.37", + "version": "1.3.38", "repository": { "type": "git", "url": "https://github.com/continuedev/continue"