generated from nhcarrigan/template
fix: read/write global CLAUDE.md via WSL on Windows #264
Reference in New Issue
Block a user
Delete Branch "fix/global-claude-md-wsl"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
get_global_claude_mdandsave_global_claude_mdwere usingdirs::home_dir()which resolves to the Windows home directory (C:\Users\accou) on Windows builds~/.claude/CLAUDE.mdlives in the WSL home directory, so the editor was always showing an empty text box and would have written to the wrong location on saveget_global_claude_md_via_wsl()andsave_global_claude_md_via_wsl()helpers that shell out to WSL (matching the existing pattern used bylist_skillsandlist_memory_files)cfg!(target_os = "windows")to use the appropriate pathTest plan
~/.claude/CLAUDE.mdfrom WSL✨ This issue was created with help from Hikari~ 🌸