Files
Codewalkers/apps/server/agent
Lukas May e7c95af1ca fix: skip standalone worktree when errand provides cwd
When spawn() receives an explicit cwd (errands), the manager was still
creating a standalone worktree at agent-workdirs/<alias>/ and injecting
its path into the workspace layout prompt. The agent then edited files
in the wrong directory — on a different branch than the errand's.

Now when cwd is provided, we skip worktree creation entirely and use
the caller's cwd for workspace layout, .cw/output/, and all paths.
2026-03-06 22:39:56 +01:00
..