singularity-forge/packages
TÂCHES 8882ce484e fix(session): update cwd on newSession to reflect worktree chdir (#517)
When auto-mode creates a worktree and chdir's into it, the Node process
cwd changes but AgentSession._cwd stays frozen at the original path.
Every newSession() builds a system prompt telling the LLM "Current
working directory: /original/path", so the LLM cd's back there and
writes files to the wrong location.

Update _cwd = process.cwd() at the start of newSession() so the system
prompt reflects the actual working directory after chdir.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 15:45:15 -06:00
..
native perf: optimize discovery and interactive hot paths 2026-03-14 16:03:44 -05:00
pi-agent-core fix(agent-core): await event queue in tool hooks for safe parallel execution (#439) 2026-03-14 21:16:17 -06:00
pi-ai Perf/gsd startup speed (#497) 2026-03-15 13:33:43 -06:00
pi-coding-agent fix(session): update cwd on newSession to reflect worktree chdir (#517) 2026-03-15 15:45:15 -06:00
pi-tui Merge pull request #457 from deseltrus/fix/skill-diagnostics-ux 2026-03-15 09:53:46 -06:00