mirror of
https://github.com/rait-09/obsidian-agent-client.git
synced 2026-07-22 16:30:32 +00:00
- 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. |
||
|---|---|---|
| .. | ||
| stubs | ||
| platform.test.ts | ||