Keep the child process environment consistent with the cwd used to launch native POSIX coding agents. Some Node-based agents use PWD during project-root discovery, so inheriting a stale PWD can make them edit files in a parent or unrelated directory even when the wrapper process cwd is correct. Only apply this normalization for native POSIX launches. WSL-launched Windows shims stay on the existing WSLENV bridge path so path translation behavior is unchanged. Add regression coverage that launches an agent with a deliberately stale inherited PWD and asserts the child environment is normalized to os.getcwd(). Co-authored-by: Leo Borcherding <borchborchmail@gmail.com> |
||
|---|---|---|
| .. | ||
| test_claude_subagent_mcp.py | ||
| test_inference_chat.py | ||
| test_pi_subagent.py | ||
| test_start.py | ||
| test_studio_cloudflare_flag.py | ||
| test_studio_password_prompt.py | ||
| test_studio_run_parallel_flag.py | ||
| test_studio_run_short_alias_clashes.py | ||
| test_studio_secure_flag.py | ||
| test_studio_verbose_flag.py | ||