-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Labels
area:configurationRelates to configuration optionsRelates to configuration optionside:vscodeRelates specifically to VS Code extensionRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on WindowsHappening specifically on Windows
Description
Bug Description
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:
overrideConfigYamlByPathis a WSL file URI (e.g.,vscode-remote://wsl+Ubuntu/home/...)localPathOrUriToPath()on the Windows host can't resolve this to a local pathfs.existsSync(configYamlPath)returnsfalse- Falls through to the deprecated
loadContinueConfigFromJson()path getConfigJsonPath()resolves toC:\Users\<user>\.continue\config.jsonviaos.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
contentin thepackageIdentifierfromLocalProfileLoader - Check for pre-read content in
doLoadConfigbefore thefs.existsSyncgate
Same class of issue as #6242, #7810 (fixed in #9739) and #9661 (fixed in #9679).
Environment
- VS Code on Windows with WSL remote workspace
- Continue v1.3.31 pre-release (also affects v1.2.15 stable)
- Agent config file in
.continue/agents/
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:configurationRelates to configuration optionsRelates to configuration optionside:vscodeRelates specifically to VS Code extensionRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on WindowsHappening specifically on Windows
Type
Projects
Status
Todo