Skip to content

feat: WSL 2.9.3 support, wslc cleanup, and .wslconfig experimental sections (v1.9.0) - #20

Open
gvtret wants to merge 3 commits into
dbfx:mainfrom
gvtret:feat/wsl-2.9.3-support
Open

feat: WSL 2.9.3 support, wslc cleanup, and .wslconfig experimental sections (v1.9.0)#20
gvtret wants to merge 3 commits into
dbfx:mainfrom
gvtret:feat/wsl-2.9.3-support

Conversation

@gvtret

@gvtret gvtret commented Jul 3, 2026

Copy link
Copy Markdown

Summary

  • Add WSL Containers (\wslc) prune task and Health dashboard card (WSL 2.9+)
  • Fix .wslconfig\ editor: write experimental keys to [experimental]; add Consomme networking mode
  • Show WSL version in status bar and Health with UTF-16/locale fallback; graceful degradation on older WSL
  • Fix \wslc-prune\ command flags (wslc -f\ is filter, not docker-style force)
  • Fix \�scode-old-bins\ awk quoting regression and \git-gc\ empty path logs
  • Bump version to 1.9.0; 225 tests including backward-compat suite

Test plan

  • Status bar and Health show WSL version; auto-refresh does not reset to --\
  • Health WSL Containers card visible (WSL 2.9.3+)
  • Config Editor: experimental keys under [experimental]; Consomme networking persists
  • Simple Clean & Compact completes successfully

  • pm test\ (225 passing)

  • pm run build\ produces \WSL Cleaner Setup 1.9.0.exe\
  • \wslc-prune\ host cleanup (fix applied; retest optional)

See \docs/MR-wsl-2.9.3-support.md\ for full details.

trgv added 3 commits June 26, 2026 13:47
Addresses five security findings from an audit of the WSL command-execution
layer, plus a rendering-consistency fix:

1. Command injection via distro name (detectTools) — replaced the lone
   execSync shell-string with execFileSync('wsl', [...]).
2. Path injection in disk scan (scanDiskUsage, runs as root) — the treemap
   target path is now shell-quoted via a new shellQuote helper.
3. Predictable temp-script names — helper scripts (several run as root in WSL)
   now use random filenames via uniqueTempPath, closing a local TOCTOU/symlink
   race and avoiding concurrent collisions.
4. Electron navigation hardening — added setWindowOpenHandler and a
   will-navigate guard in main.js.
5. runWslCommand executable allowlist — refuses any command whose executable
   isn't `wsl`.

Also: fail-log rendering now uses escapeHtml consistently.

Adds tests/security.test.js (11 regression tests). Full suite: 191 passing.

This branch also carries in-progress reliability work bundled by request:
UTF-16 output decoding, transient WSL-service-timeout retry, and registry-based
VHDX discovery.
Helper scripts are unlinked when their process closes, but an orphaned WSL
process can leave one behind; with random names these would slowly accumulate.
Adds sweepTempScripts() — removes wsl-cleaner-*.{sh,ps1,log} older than 1h from
the temp dir — and calls it once on app startup.

Adds 4 regression tests (age threshold, ext filtering, foreign-file safety,
missing-dir tolerance). Full suite: 195 passing.
…ctions (v1.9.0)

Add WSL Containers (wslc) prune task, Health dashboard card, and WSL version detection with UTF-16/locale fallback. Fix .wslconfig editor to write experimental keys under [experimental], add Consomme networking mode, and correct wslc-prune command flags. Includes backward-compat tests and vscode-old-bins/git-gc fixes. 225 tests passing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant