-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix(frontend): harden Windows Claude Code installations scan #1053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(frontend): harden Windows Claude Code installations scan #1053
Conversation
📝 WalkthroughWalkthroughAdds Windows-specific test suite for Claude Code CLI installation scanning with mocked IPC handlers and file system operations. Updates Claude CLI validation logic to normalize paths, strip quotes, handle Windows executable extensions, deduplicate installations, and fix command execution via cmd.exe with proper verbatim arguments. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (2)apps/frontend/src/**/*.{tsx,ts}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
apps/frontend/**/*.{ts,tsx}⚙️ CodeRabbit configuration file
Files:
🧬 Code graph analysis (1)apps/frontend/src/main/ipc-handlers/claude-code-handlers.ts (1)
🔇 Additional comments (12)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
The latest version of the dev branch no longer has this issue |
Base Branch
developbranch (required for all feature/fix PRs)main(hotfix only - maintainers)Description
Fixes Windows installation scan failures when Claude Code is installed via npm under nvm4w (paths with spaces). The scan now strips wrapping quotes from
whereoutput, skips extensionless shim candidates on Windows, and validates.cmd/.batviacmd.exewithwindowsVerbatimArguments. Adds a regression test for quoted.cmdpaths + extensionless shims.Related Issue
Closes #1050
Type of Change
Area
Commit Message Format
Follow conventional commits:
<type>: <subject>Types: feat, fix, docs, style, refactor, test, chore
Example:
feat: add user authentication systemChecklist
developbranchCI/Testing Requirements
Screenshots
N/A (no UI changes)
Feature Toggle
use_feature_nameBreaking Changes
Breaking: No
Details: N/A
Summary by CodeRabbit
Tests
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.