This patch contains essential fixes for Claude AI integration on Windows:
- CWD Path Resolution - Fixes relative path handling for worktrees
- Worktree Fallback - Uses project path when worktree is missing
- Windows Binary Download - Fixes version and URL for Windows builds
- Build Workflow - Adds binary download step to Windows CI
# Make sure you're on the latest main branch
git checkout main
git pull origin main
# Apply the patch
git apply claude-essential-fixes.patch
# If there are conflicts, resolve them and then:
git add -A
git commit -m "Apply Claude fixes: CWD resolution, worktree fallback, Windows binary download"src/main/lib/trpc/routers/claude.ts- CWD resolution and worktree fallbacksrc/main/lib/git/worktree.ts- Use os.homedir() for Windowsscripts/download-claude-binary.mjs- Windows version and URL fixes.github/workflows/build-windows.yml- Add binary download step
- CWD Resolution: Resolves relative worktree paths (
.21st\worktrees\...) to absolute paths using home directory - Worktree Fallback: If worktree doesn't exist, automatically falls back to project path from database
- Windows Binary: Uses version 2.0.61 (has Windows support) and correct URL (
claude.exenotclaude) - CI/CD: Downloads Claude binary before building Windows package