Repository navigation
Description
Before submitting your bug report
- I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- I'm not able to find a related conversation on GitHub discussions that reports the same bug
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
• Windows 11
• WSL: Ubuntu 22.04.5 LTS
• Continue.dev: latest version from Marketplace
• Ollama: installed and running inside WSL
• Workspace: located in WSL filesystem
• VS Code host: WSL (confirmed by UI)Description
When VS Code is running in a WSL session, Continue.dev installs its extension files into the WSL extension host (~/.vscode-server/extensions), but the extension does not activate in WSL. Instead, Continue.dev activates in the Windows extension host, even though VS Code itself is fully running in WSL.
This results in Continue.dev reading and writing configuration files from the Windows filesystem (C:\Users<user>.continue\config.yaml) instead of the WSL filesystem (~/.continue/config.yaml), and the WSL copy of the extension remains dormant.
This behaviour is unique to Continue.dev — other extensions installed in WSL activate correctly.
To reproduce
- Launch VS Code from a Windows shortcut
- VS Code automatically reopens in WSL (because that was the last used host)
- Install Continue.dev while VS Code is running in WSL
- Observe:
- Extension files are installed into ~/.vscode-server/extensions
- Continue.dev does not activate in WSL
- Continue.dev activates in the Windows extension host instead
- Continue.dev reads/writes:
- Windows config: C:\Users<user>.continue\config.yaml
- NOT the WSL config: ~/.continue/config.yaml
- Adding models via the Continue UI updates the Windows config file
- The WSL config file remains empty and unused
- Only when launching VS Code via '$ code .' from a WSL shell does Continue.dev finally activate in WSL and use the correct config.
Note that I actually uninstalled continue.dev from vscode, using the extension manager, before re-launching code from the command line in a WSL terminal (step 8); vscode only uninstalled the extension from the Windows filesystem, leaving the WSL filesystem with the extension still installed.
Expected Behaviour
- When VS Code is running in a WSL session, Continue.dev should:
- Activate in the WSL extension host
- Read/write config from ~/.continue/config.yaml
- Ignore the Windows extension host unless explicitly installed there
This is how other WSL‑compatible extensions behave.
Impact
- Incorrect config resolution
- Incorrect model discovery
- Workspace indexing fails or uses wrong paths
- Embedding models not found
- Model dropdown shows only Windows‑side models
- Users cannot reliably configure Continue.dev in WSL
- Behaviour differs from all other WSL‑aware extensions
Hypothesis
Continue.dev may be declaring itself as:
"extensionKind": ["ui"]
or otherwise binding activation to the UI host instead of the workspace host.
This would cause:
- UI activation on Windows
- Workspace activation never firing in WSL
- Config resolution happening on the Windows side
- WSL extension files being installed but unused
Workaround
Launching VS Code via:
$ code .
from a WSL shell forces the WSL extension host to become primary, and Continue.dev activates correctly.
Request
Please review Continue.dev’s:
- extensionKind declaration
- activation events
- remote/WSL host detection
- config path resolution logic
The current behaviour suggests Continue.dev is not correctly activating in WSL even when VS Code is running entirely inside a WSL session.
Activity
shanevcantwell commentedon Feb 12, 2026
I've been in the wsl stuff and should have this addressed. Here's a good description with associated links:
This is a known architectural constraint. Continue declares extensionKind: ["ui", "workspace"] because it needs UI host access for webviews, clipboard, and platform-matched native modules (ripgrep, SQLite). Flipping to ["workspace", "ui"] breaks those features.
The tradeoff is that when VS Code connects to WSL, the extension process runs on Windows while the workspace is in WSL — causing cross-filesystem path resolution failures throughout the codebase.
A series of fixes have been merged to handle this, with the detection pattern:
process.platform === "win32" && !["", "local"].includes(ideInfo.remoteName)
Merged fixes:
#9679 — Terminal commands spawn powershell.exe instead of using WSL shell
#9739 — Config YAML loading fails on vscode-remote:// URIs
#9740 — MCP server spawn wraps commands in cmd.exe unnecessarily
#9934 — getEnvPathFromUserShell() returns undefined for WSL
#10391 — Generalizes terminal fix to all remote types (Dev Container, SSH, Codespaces)
Open:
#10451 — Agent config loading falls back to config.json on Windows path
The code . workaround you found changes which host VS Code treats as primary, but the fixes above address the root path resolution issues so the extension works correctly regardless of how VS Code is launched.
rdcoe commentedon Feb 12, 2026
That's terrific that the root cause will be fixed. Would you like me to close this issue per your comment, or leave it open until the commits have been verified?
shanevcantwell commentedon Feb 12, 2026
Let the PR close it so there is clear cross referencing. And I'm glad to be getting these fixed for my own sake too!
sabotagebeats commentedon Mar 4, 2026
code .from wsl does not resolve this issue for me, unfortunately. Do I need to reinstall Continue some special way?edit:
I did some testing, and it looks like Continue is still referencing
C:\Users\me\.continue.After uninstalling Continue, copying
C:\Users\me\.continueto~/.continueand and movingC:\Users\me\.continuetoC:\Users\me\.continue-oldand reinstalling Continue, the extensions reopens empty in VScode and creates a newC:\Users\me\.continueautomatically so I reverted all of those steps to get it working again as I had it.Eagerly await a resolution, thank you in advance @shanevcantwell :)
shanevcantwell commentedon Mar 4, 2026
@sabotagebeats This is the
extensionKind: ["ui", "workspace"]behavior — Continue prefers to run in the Local Extension Host on Windows even when VS Code is connected to WSL. That's why it reads config fromC:\Users\me\.continueand whychild_process.spawn()executes locally.Two open PRs address the terminal command side of this:
childProcess.spawnto local-only environments (prevents theENOENTerrors)These won't change which config directory Continue reads from, but they fix the broken command execution path that makes the extension unusable on remotes.
sabotagebeats commentedon Mar 4, 2026
For the config does the local projext .continue configs override the ~/.continue configs which override the C:Users/me/.continue? Or does the windows directory rule all? Or how does that work?
shanevcantwell commentedon Mar 4, 2026
@sabotagebeats Since the extension runs in the Local Extension Host on Windows,
os.homedir()always resolves toC:\Users\me— so the global~/.continueis always the Windows-side directory. Your WSL~/.continueis never read.Project-level
.continue/in the workspace root should layer on top of global config, but there are open issues with that path resolution on remotes (#10450, #9739).sabotagebeats commentedon Mar 5, 2026
@shanevcantwell so for rules and system prompts I'm supposed to use the convention of
file://in the.continue/agents/config.yamlwhich I have within my project as per the documentation: https://docs.continue.dev/reference#rulesIn order to do that do I need to point to the wsl data structure to see the
.continue/rules/or.continue/promptsfolders?The documentation is not clear on this.
The WSL file structure I'm guessing that be something like this?
\\wsl.localhost\LinuxDistribution\home\Username\project\.continue\rules\rule.mdOr is there a way to point it to just the local directory like this:
./.continue/rules/rule.md?Lastly, is this configurable with a wildcard? a la
./.continue/rules/*Or alternatively do I need to put these in the rules directory in my windows
.continuefolder?shanevcantwell commentedon Mar 12, 2026
@sabotagebeats Sorry for delay. Rules in .continue/rules/ are auto-discovered. You don't need to reference them with file:// paths in config.yaml. Just put your .md files in your project's .continue/rules/ directory and they'll be picked up automatically.
For WSL, that means the normal Linux path inside your workspace: /home/username/project/.continue/rules/rule.md. No \wsl.localhost\ paths needed. Continue resolves from the workspace root of project, so it works the same whether you're local or remote.
You can verify by selecting Rules in Settings and clicking the
+to add a rule to Current Workspace. It will create a new file in the project that you can edit.Project-level rules (in your project's .continue/rules/) override the user-level rules (in ~/.continue/rules/).
sabotagebeats commentedon Apr 10, 2026
@shanevcantwell is this resolved by #10462? #10462
shanevcantwell commentedon Apr 11, 2026
What behavior are you seeing? This should have been covered by merged PRs already and is only open because it didn't get auto-closed.
sabotagebeats commentedon Apr 11, 2026
@shanevcantwell I switched to pre-release mode and I think the problem is resolved
dobrienphd commentedon Apr 28, 2026
Adding my two cents, I use WSL and I just installed Continue (v1.2.22) in Cursor for the first time and it is still reading the config from Windows even though the project is inside WSL and it is unable to read any project files:
"read_file failed with the message: File "xxxx" does not exist or is not accessible. You might want to check the path and try again.
Please try something else or request further instructions."
shanevcantwell commentedon Apr 28, 2026
Can you provide repro steps, and explain the use case of Continue within Cursor? That reads as redundant to me.
Analysis:
This is a different bug. The user is getting
read_file failedbecause:/home/username/project/file.txtpathToFileURL()converts it tofile:///home/username/project/file.txtvscode.workspace.fs.stat()fails because Windows can't read WSL paths viafile://URIsFix needed: When running on Windows with a WSL remote, absolute paths should be converted to
vscode-remote://wsl/...URIs, notfile://URIs.This is separate from the original #10433 (config loading) and the terminal issues (#10542). It's about file I/O in general.
sabotagebeats commentedon Apr 28, 2026
There also seems to be an other bug about where it can type into the "remote" wsl terminal now but can't get the output from, or do carriage return
jurschel-gmt commentedon Apr 28, 2026
Lucky me, I started using continue yesterday and one of the first things I discovered is this bug... It will type the command at the commandline but never pass the carriage return, enter or whatever you want to call it to actually run the command. Mildly annoying to say the least. Does anyone have Continue with local models in agent mode and running from WSL working on the commandline? For example, I want to ask it to review a k8s namespace using kubectl which wsl has installed with credentials. I am running the pre-release version and it still happens.
dobrienphd commentedon Apr 29, 2026
Use case is to leverage a local Ollama server for everyday tasks to reserve the paid Cursor usage limits for high impact work only to get more value from the existing usage limits. I tried configuring Cursor to use local LLMs but it doesn't really play nice. I could use VSCode just for Continue but since I'm already using Cursor I don't see the point in using two IDEs.
For repro steps I will explain how I set up Continue in Cursor:
In cursor I was in a WSL based project.
I installed the Continue extension. Then I modified the "Local Config" yaml file to point to my Ollama endpoint (not localhost, a different system on the same local network). Specific model tested was qwen3.6:27b using parameters recommended at (https://huggingface.co/Qwen/Qwen3.6-27B), tools were enabled.
Then I tested the model with a simple prompt, it responded successfully.
Then I gave it a task to perform, it attempted to read files in the repo (it knew their file names and relative paths from project root) but all read attempts failed with the error I posted above. Tool use also failed.
Then I noticed that the yaml file was in my windows filesystem, not in WSL. I couldn't figure out how to get it to switch to WSL. I googled the issue and found this ticket which seemed related.
shanevcantwell commentedon Apr 29, 2026
@dobrienphd Gotcha, thanks for typing that up. I don't know Cursor at all, but it seems like Cursor wrapping VSCode wrapping Remote to WSL is kind of an Inception-level abstraction from the filesystem. I would recommend first trying VSCode bare and adding the Continue extension directly, then clicking the lower-left
><-looking icon to remote into WSL.qwen3.6 is pretty fantastic for informal agent orchestration and digital assistant stuff. Coding is not spectacular, but it does a great job with ad-hoc shell scripting. The qwen3.6-35b-a3b is a good clip faster, but you have to stay pretty well on topic in a given context because it only activates 3% of its experts (8/256) +1. They both miss maybe 1-2 out of 100 tool calls, but I've only taken the -35b-a3b down to temp=0.7, so there's room to cool still to help with the apparent dropped tokens. If you have any more significant tool issues open a bug and @ me.
github-actions commentedon Jul 29, 2026
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
github-actions commentedon Aug 9, 2026
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, you are welcome to leave a comment and this will keep the issue open. However please note that this repo is no longer being actively maintained.
ceferrari commentedon Aug 26, 2026
I solved it by changing the following on my
settings.json: