Skip to content

Conversation

@alexiokay
Copy link

Description

This PR improves Windows support for Claude Code by enhancing shell environment detection and error messaging.

Changes Made

  • Fix build script for Windows: Now works on PowerShell or CMD, before it only ran on Git Bash
  • Add shell_environment.rs module: New Windows shell detection system
  • Automatic shell detection: Detects Git Bash, WSL, and PowerShell automatically
  • Fix shell environment setup: Proper environment setup for Claude Code on Windows
  • Improve error messages: Display proper error messages with instructions in chat sessions about missing POSIX shell instead of confusing version errors

Testing

  • Tested on Windows with PowerShell
  • Verified error message formatting in chat UI
  • Confirmed shell detection works for Git Bash and WSL scenarios

Impact

This significantly improves the Windows user experience by providing clear guidance when shell environments are missing and ensuring the application works across different Windows shell environments.

Added automatic detection for Git Bash, WSL, and PowerShell. Improved setup of Claude Code shell environment on Windows and replaced misleading Bun version error with a clear instruction about missing POSIX shell.

Fix build script to work on PowerShell and CMD, not just Git Bash.
- Resolved icon.icns binary conflict by using upstream version
- Updated dependencies and merged latest changes
- Preserved all Windows shell environment improvements
@alexiokay
Copy link
Author

I used AI, but I supervised most of changes, also it builds on windows. it couldn't build because of icons I had to generate icons with tauri icon command again to build the app. I tested it manually and it works correctly. Claude Code now officially support windows without wsl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant