mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-22 16:25:58 +00:00
When the desktop UI runs on Windows and the gateway runs in WSL, a WSL/POSIX cwd isn't openable/readable from the Windows host. Add wsl-path-bridge.ts to translate the Windows-side direction only: - native folder dialog defaultPath: `/home/...` → `\\wsl.localhost\<distro>\...` - fs read path: WSL cwd → its UNC / `C:\` drive form Distro detection reads `wsl.exe -l -q` with `WSL_UTF8=1` and strips stray NUL bytes, since older wsl.exe emits UTF-16LE (microsoft/WSL#4607) — the original utf8 read returned a garbled distro name. UNC uses `\\wsl.localhost\` with a `\\wsl$\` fallback for older Windows. The reverse (any path → POSIX) is handled once gateway-side, so the picker result needs no desktop translation. Co-authored-by: Rage Lopez <VrtxOmega@pm.me> |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||