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
|
|
@ -37,7 +37,8 @@ actually attached, so a `continue` naming a session that isn't there
|
|||
fails the tool call outright instead of looking like it worked; the error
|
||||
says which directory it searched, which is usually the fix (pass `dir`).
|
||||
`dir` defaults to your work dir, `/agents/<you>/work`, which has no
|
||||
`CLAUDE.md` above it, so a subagent started there does not load yours.
|
||||
`CLAUDE.md` above it, so a subagent started there does not load yours
|
||||
(until that directory exists, the daemon's cwd is used).
|
||||
Use `status` for a
|
||||
zero-cost "is it still going" check — for a running subagent it also
|
||||
reports how long since that turn last produced output, so a few seconds
|
||||
|
|
|
|||
Loading…
Reference in a new issue