Skip to content

Conversation

embogomolov
Copy link

Fixes Windows-specific issues with Claude binary detection and execution

Changes

  • Use 'where' command on Windows instead of 'which' for proper path resolution
  • Fix command resolution that incorrectly resolved to bun.exe
  • Add CREATE_NO_WINDOW flag to hide console windows on Windows
  • Support multiple paths returned by 'where' command
  • Use full paths for version detection to avoid binary conflicts

Fixes

  • Windows users seeing 'Bun v1.2.18' instead of Claude responses
  • npm global installations not being detected in settings
  • Empty CMD windows appearing on each Claude execution

- Replace Unix-specific cp -r command with cross-platform Node.js cp() function
- Add icon.ico to Tauri bundle configuration to fix Windows bundling

These changes enable successful builds on Windows systems
  - Use 'where' command on Windows instead of 'which' for proper path resolution
  - Fix command resolution that incorrectly resolved to bun.exe
  - Add CREATE_NO_WINDOW flag to hide console windows on Windows
  - Support multiple paths returned by 'where' command
  - Use full paths for version detection to avoid binary conflicts

  Fixes issue where Windows users saw 'Bun v1.2.18' instead of Claude responses
  and where npm global installations were not detected in settings.
@rikodot
Copy link

rikodot commented Jul 23, 2025

works with latest version too

@ahandro1
Copy link

ahandro1 commented Jul 23, 2025

works with latest version too

How are you getting it to work with the latest version with all the mentions of bundles?

EDIT: Got it working eventually after a lot of messing with agents.rs and claude_binaries

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.

3 participants