fix: pass pre-read content to bypass fs.existsSync for WSL agent configs #10451
+267
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
contentfromoverrideAssistantFilethrough thePackageIdentifierinLocalProfileLoader, reusing the content bypass added toRegistryClientin PR fix: pass pre-read content to RegistryClient for WSL compatibility #9739fs.existsSyncgate indoLoadConfig, preventing fallback to the deprecated JSON config loader when the YAML path can't be resolved cross-filesystemContext
When VS Code runs on Windows host with a WSL remote workspace (
extensionKind: ["ui", "workspace"]), selecting an agent config from.continue/agents/fails with:localPathOrUriToPathcan't resolvevscode-remote://URIs to local paths on the Windows host, sofs.existsSyncreturns false, falling through to the deprecated JSON loader. The content is already available in memory — it just wasn't being passed through.Same class of issue as #6242, #7810 (fixed in #9739) and #9661 (fixed in #9679).
Fixes #10450
Test plan
LocalProfileLoaderpasses content inpackageIdentifierfor override filesdoLoadConfiguses YAML loading (not JSON fallback) when pre-read content is available.continue/agents/in WSL remote workspace🤖 Generated with Claude Code
Summary by cubic
Pass pre-read YAML content from override agent files to the config loader to avoid fs.existsSync checks for vscode-remote URIs. This fixes agent config selection in VS Code on Windows with a WSL remote workspace.
Written for commit f9714fe. Summary will update on new commits.