Previously hardcoded `/home/naomi/.local/bin/claude` which would break
for other users. Now uses `wsl -e bash -l -c "which claude"` to find
the Claude binary dynamically using a login shell that has the full PATH.
Also updated 6 plugin/marketplace functions that were still using
`std::process::Command::new("claude")` directly instead of the
`create_claude_command()` helper:
- enable_plugin
- disable_plugin
- update_plugin
- list_marketplaces
- add_marketplace
- remove_marketplace
This ensures all Claude CLI commands work properly on Windows regardless
of where Claude is installed, whilst maintaining backwards compatibility.
✨ This fix was created by Hikari~ 🌸
Resolves#137
Claude CLI commands (plugin list, MCP list, version check, etc.) were
being executed directly in Windows context where the `claude` binary
doesn't exist. This caused "program not found" errors across the UI.
Changes:
- Added `create_claude_command()` helper that automatically prefixes
commands with `wsl` on Windows builds
- Updated 8 command functions to use the helper:
- get_claude_version
- list_plugins
- install_plugin
- uninstall_plugin
- list_mcp_servers
- remove_mcp_server
- add_mcp_server
- get_mcp_server_details
- Added comprehensive tests for both Windows and Linux contexts
This ensures all Claude CLI commands execute in the correct WSL
context on Windows, fixing the memory pane, plugin pane, MCP servers
pane, and CLI version detection.
✨ This fix was created by Hikari~ 🌸
Resolves#137
Claude CLI commands (plugin list, MCP list, version check, etc.) were
being executed directly in Windows context where the `claude` binary
doesn't exist. This caused "program not found" errors across the UI.
Changes:
- Added `create_claude_command()` helper that automatically prefixes
commands with `wsl` on Windows builds
- Updated 7 command functions to use the helper:
- get_claude_version
- list_plugins
- install_plugin
- uninstall_plugin
- list_mcp_servers
- enable_mcp_server
- disable_mcp_server
- Added comprehensive tests for both Windows and Linux contexts
This ensures all Claude CLI commands execute in the correct WSL
context on Windows, fixing the memory pane, plugin pane, MCP servers
pane, and CLI version detection.
✨ This fix was created by Hikari~ 🌸