subagent: default cwd to the work dir only when it exists
A spawn into a missing cwd fails with a bare ENOENT; a daemon newer than its container's bind now inherits its own cwd again, as before the work-dir default.
This commit is contained in:
parent
043c9445f6
commit
8c0a552792
5 changed files with 49 additions and 12 deletions
|
|
@ -81,7 +81,8 @@ struct StartArgs {
|
|||
/// you've already prepared for it, so a parallel batch of subagents
|
||||
/// never race on the same working tree. Must exist. Omit to use your
|
||||
/// work dir, `/agents/<you>/work` (it has no `CLAUDE.md` above it, so the
|
||||
/// subagent does not load yours). The daemon
|
||||
/// subagent does not load yours); until that directory exists (a container
|
||||
/// that predates its bind) the daemon's cwd is used. The daemon
|
||||
/// remembers whichever `dir` you give here against `name`, so a later
|
||||
/// `continue`/`status` for the same name doesn't need to repeat it —
|
||||
/// only pass it there again if you want to point at a *different*
|
||||
|
|
|
|||
Loading…
Reference in a new issue