Repository navigation
fix(windows): add PowerShell compatibility fallbacks for ls, wc, proxy, discover, session - #2728
Open
jlaportebot wants to merge 4 commits into
Open
jlaportebot wants to merge 4 commits into
jlaportebot wants to merge 4 commits into
Conversation
jlaportebot
force-pushed
the
fix/issue-1248-windows-powershell-compatibility
branch
from
August 8, 2026 17:56
00c4fb2 to
d240ddb
Compare
Author
|
All CI checks pass (CLA check green). PR is mergeable with no conflicts. Awaiting maintainer review/merge (blocked by merge queue policy). |
…y, discover, session Addresses issue rtk-ai#1248: RTK Windows PowerShell Compatibility Gaps Changes: - ls.rs: On Windows, detect when 'ls' is not a real executable (PowerShell alias) and suggest 'rtk tree .' as native alternative - wc_cmd.rs: On Windows, detect when 'wc' is not available and provide PowerShell/Git Bash/WSL alternatives - main.rs (proxy): On Windows, warn about PowerShell aliases (ls, dir, echo, pwd, cp, mv, rm, cat, man, which) and built-ins (cd, set, exit, cls, history, alias, function) that aren't real executables - discover/mod.rs: On Windows, when no Claude sessions found, provide helpful info about session storage location (%USERPROFILE%\.claude\projects\) - analytics/session_cmd.rs: Same as above for session command All changes are conditional compilation (cfg(target_os = "windows")) so they only affect Windows users.
jlaportebot
force-pushed
the
fix/issue-1248-windows-powershell-compatibility
branch
from
September 16, 2026 05:45
040e9f7 to
23223c6
Compare
pszymkowiak
requested changes
Nov 16, 2026
Collaborator
There was a problem hiding this comment.
Thanks for looking into #1248. I can't merge this as it stands; here is what I found reviewing the diff against current develop.
State
- The branch is 757 commits behind
developand conflicts in 5 of the 6 files it touches (npm_cmd.rs,ruff_cmd.rs,wc_cmd.rs,config.rs,main.rs). - Only the CLA check ran, so there is no fmt/clippy/test result for this branch.
Scope
- The description lists changes to
ls.rsanddiscover/mod.rs, but neither file is in the diff.rtk lsandrtk discover, two of the cases in #1248, are therefore not addressed. - Two unrelated commits are included:
- npm (#2663): only two comments remain in the diff.
- ruff: it adds a
RUFF_SUBCOMMANDSconstant and an inline check detection.developalready has its ownRUFF_SUBCOMMANDSand a token-based detection, so resolving the conflict in favour of this branch would regress it.
- The
RTK_CONFIG_DIRchange inconfig.rsis unrelated to this PR; please submit it separately.
Behaviour
- The proxy warning fires on the command name alone (
ls,cat,rm,echo, ...) whenever the target OS is Windows, without checking whether an executable of that name resolves. It should only be printed after resolution has actually failed. - The
wcnote is printed before the command fails anyway; it does not makertk wcwork. - There are no tests for any of the new output.
What would make this mergeable
- Rebase on
developand drop the npm, ruff andconfig.rschanges. - Emit the alias/built-in hint only when the executable cannot be resolved, and add tests for it.
- Either cover
lsanddiscoveror remove them from the description.
Note that #3301 and #2875 propose native Windows fallbacks for ls/wc. If one of those lands, the hint messages for these two commands are no longer needed, so it may be worth narrowing this PR to the proxy hint only.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #1248
Changes
All changes are conditional compilation (cfg(target_os = "windows")) so they only affect Windows users.
Testing
AI Disclosure
This PR was developed with AI assistance.