rait-09_obsidian-agent-client/test
RAIT-09 5aa988091d fix(wsl): address Copilot review on #312 (cd fail-fast, buildWslEnv guard)
- Agent launcher: `cd "$1" 2>/dev/null;` -> `cd "$1" || exit 1;` so a failed
  cd doesn't silently run the agent in the wrong directory. Matches the
  terminal wrapper and pre-#304 launch (both use `cd ... && ...`).
- buildWslEnv: guard `existing` with `typeof baseEnv.WSLENV === "string"` so
  the helper truly never throws (its docstring's contract) even if WSLENV is
  set to a non-string via a type cast.
- Tests: add regression guards for both.

Not changed: the `/bin/sh -l -c` fallback for non-POSIX shells (Copilot
flagged it as possibly unsupported). It matches the shipped buildWslShellWrapper
and `wsl.exe /bin/sh -l -c 'echo OK'` works (dash supports -l); revisit across
all three builders together if a shell without `-l` support turns up.
2026-06-05 14:52:41 +09:00
..
stubs fix(wsl): launch agents via --exec login-shell + argv, forward env via WSLENV 2026-06-05 13:16:28 +09:00
platform.test.ts fix(wsl): address Copilot review on #312 (cd fail-fast, buildWslEnv guard) 2026-06-05 14:52:41 +09:00