fix: detect WSL remote for shell PATH resolution#9934
Merged
RomneyDa merged 1 commit intocontinuedev:mainfrom Jan 31, 2026
Merged
fix: detect WSL remote for shell PATH resolution#9934RomneyDa merged 1 commit intocontinuedev:mainfrom
RomneyDa merged 1 commit intocontinuedev:mainfrom
Conversation
When Windows host connects to WSL remote, getEnvPathFromUserShell() was returning undefined because it checked only process.platform === "win32". Add remoteName parameter to getEnvPathFromUserShell() and use the isWindowsHostWithWslRemote pattern (consistent with resolveCommandForPlatform) to allow shell PATH detection for WSL remotes. Fixes continuedev#9737 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
RomneyDa
approved these changes
Jan 31, 2026
Collaborator
RomneyDa
left a comment
There was a problem hiding this comment.
This is great, thanks!
Contributor
|
🎉 This PR is included in version 1.41.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
remoteNameparameter togetEnvPathFromUserShell()isWindowsHostWithWslRemotepattern (consistent withresolveCommandForPlatform) to allow shell PATH detection for WSL remotesProblem
When Windows host connects to WSL remote,
getEnvPathFromUserShell()was returningundefinedbecause it only checkedprocess.platform === "win32".This caused MCP servers running in WSL to not get the user's shell PATH, potentially missing tools like
npx,node, etc.Test plan
Fixes #9737
🤖 Generated with Claude Code
Continue Tasks:▶️ 1 queued · ▶️ 1 not started — View all
Summary by cubic
Detect WSL remotes when resolving PATH from the user's shell. Ensures MCP servers running in WSL get the correct PATH on Windows hosts.
Written for commit 939b44b. Summary will update on new commits.