Add WSL2 Claude Code detection and sync support#149
Conversation
|
+1 for this, i can run this tool from inside of wsl, but it seems to be a much nicer, cleaner pattern to be able to dip into WSL. any ideas when this might make it through ? fantastic work by the way ;) |
|
Whenever I have some time to test it some, I will work on a release. If you wanted to pull the branch and build it and let me know how it goes, that would be very helpful. |
Rebased onto current main. The original commit also included fixes for preexisting type errors across usageStore/skill/invokeMock/etc., but main has since landed canonical fixes for all of them (#221, #226, #227, #236), so those parts of the original commit are dropped. Net change: WSL2-specific Rust code (utils/wsl.rs, services/wsl_config.rs) plus the settings/config plumbing to expose WSL editors in the UI. See PR #149 for full description.
9a6dee2 to
ddcb5bc
Compare
|
Rebased onto current main (was 76 commits behind, from 2026-04 era). Changes during the rebaseConflicts resolved (3):
Duplicates removed: Commit message updated to drop the "fix preexisting type errors" suffix since main now owns those fixes. Verification
Net surface: 10 files, +618 / -9 (was 14 files / +662 / -12 in the original). WSL2-specific code (`utils/wsl.rs`, `services/wsl_config.rs`) and settings plumbing only — no longer touches type-fix files that main handles. 🤖 Generated with Claude Code |
Summary
wsl.exe~/.claude.jsoninside WSL distros throughwsl.execommands#[cfg(target_os = "windows")]gated — no-ops on other platformsNew files
src-tauri/src/utils/wsl.rs— WSL2 detection, distro listing, file I/O throughwsl.exe, UTF-16LE decodingsrc-tauri/src/services/wsl_config.rs— Config writer for WSL distros (same claude.json format)Modified files
settings.rs,config.rs,models.rs,lib.rs,mod.rsfiles — WSL editor detection, sync, and command registrationSettingsEditorSyncTab.svelte— WSL editors get amber "W" badge with proper display namesskill.ts,usageStore.svelte.ts,invokeMock.ts,skillLibrary.test.ts,sessions/+page.svelteTest plan
svelte-checkreports 0 errors (down from 12)