You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agent config loading falls back to config.json on Windows host with WSL remote #10450
area:configurationRelates to configuration optionside:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windows
When VS Code runs on Windows host with a WSL remote workspace (extensionKind: ["ui", "workspace"]), selecting an agent config from .continue/agents/ fails with:
Failed to parse config.json: Error: ENOENT: no such file or directory, open 'C:\Users\<user>\.continue\config.json'
Root Cause
In core/config/profile/doLoadConfig.ts, when an agent config is selected:
overrideConfigYamlByPath is a WSL file URI (e.g., vscode-remote://wsl+Ubuntu/home/...)
localPathOrUriToPath() on the Windows host can't resolve this to a local path
fs.existsSync(configYamlPath) returns false
Falls through to the deprecated loadContinueConfigFromJson() path
getConfigJsonPath() resolves to C:\Users\<user>\.continue\config.json via os.homedir() → ENOENT
Fix
LocalProfileLoader already has the agent file's content available in overrideAssistantFile.content, but doesn't pass it through to the PackageIdentifier. PR #9739 added a content field to PackageIdentifier and a bypass in RegistryClient.getContent() for exactly this scenario.
The fix is to:
Pass content in the packageIdentifier from LocalProfileLoader
Check for pre-read content in doLoadConfig before the fs.existsSync gate
area:configurationRelates to configuration optionside:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windows
Activity
fix: pass pre-read content to bypass fs.existsSync for WSL agent configs
fix: pass pre-read content to bypass fs.existsSync for WSL agent conf…