[Bug] Platform detection fails for native Windows/PowerShell vs WSL2 environments
Resolved 💬 3 comments Opened Jan 28, 2026 by nvstrien Closed Feb 1, 2026
Bug Description
claude code is unaware if it is run natively on windows/powershell or working under wsl2. This causes a lot of furstration because of wasted time and commands being issued that are invalid.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.22
- Feedback ID: 10c06714-c3e3-4822-8d8e-caeb228984c2
Errors
[{"error":"Error: ENOENT: no such file or directory, scandir 'C:\\ProgramData\\ClaudeCode\\.claude\\skills'\n at readdirSync (unknown)\n at <anonymous> (B:/~BUN/root/claude.exe:12:2063)\n at oX (B:/~BUN/root/claude.exe:11:35454)\n at readdirSync (B:/~BUN/root/claude.exe:12:2024)\n at H6$ (B:/~BUN/root/claude.exe:1756:380)\n at H6$ (B:/~BUN/root/claude.exe:1756:1350)\n at <anonymous> (B:/~BUN/root/claude.exe:1756:4670)\n at <anonymous> (B:/~BUN/root/claude.exe:1756:5401)\n at A (B:/~BUN/root/claude.exe:11:7259)\n at pxE (B:/~BUN/root/claude.exe:4818:4342)","timestamp":"2026-01-28T09:09:39.010Z"},{"error":"Error\n at vS (B:/~BUN/root/claude.exe:42:1144)\n at <anonymous> (B:/~BUN/root/claude.exe:47:10093)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/claude.exe:49:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-28T09:09:39.291Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"thinking.enabled.budget_tokens: Input should be greater than or equal to 1024\"},\"request_id\":\"req_011CXZX3JHM86XzP18zHtuL5\"}\n at generate (B:/~BUN/root/claude.exe:144:37631)\n at makeRequest (B:/~BUN/root/claude.exe:161:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-28T09:12:40.248Z"},{"error":"Error: Request was aborted.\n at makeRequest (B:/~BUN/root/claude.exe:161:3940)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-28T09:16:57.139Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗