unsloth/unsloth_cli
Lee Jackson a26692612d
Normalize PWD for POSIX agent launches (#7110)
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>
2026-07-23 17:54:09 -05:00
..
commands Normalize PWD for POSIX agent launches (#7110) 2026-07-23 17:54:09 -05:00
tests Normalize PWD for POSIX agent launches (#7110) 2026-07-23 17:54:09 -05:00
__init__.py Replace standalone Studio wording with Unsloth (#7221) 2026-07-19 00:47:04 -07:00
_inference.py Fix local CLI streamed generation error handling (#7135) 2026-07-20 23:14:58 -03:00
_tool_policy.py Keep server-side tools enabled under --secure (#6403) 2026-06-18 05:52:40 -07:00
claude_subagent_mcp.py Unsloth start: add local subagents for Claude Code, Codex, OpenCode and Pi (#7326) 2026-07-22 04:34:58 -07:00
codex_fallback_prompt.md Fix agent workspace isolation and Hermes one-shot resume (#7103) 2026-07-15 15:06:03 +02:00
config.py Reduce and tighten code comments and docstrings repo-wide (#6095) 2026-06-08 23:09:51 -07:00
options.py CLI: fix --local-dataset being parsed as a string instead of a list (#6357) 2026-06-16 02:32:26 -07:00
pi_subagent.ts Unsloth start: add local subagents for Claude Code, Codex, OpenCode and Pi (#7326) 2026-07-22 04:34:58 -07:00