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
|
|
@ -76,7 +76,7 @@ claude the bare name — see below.
|
|||
|
||||
Because the remembered directory goes with the rest of it, a `continue`
|
||||
after a restart has to re-supply `dir` when the session lives anywhere
|
||||
other than the agent's work dir (the default) — and a restart is the
|
||||
other than the agent's work dir (the default when it exists) — and a restart is the
|
||||
situation you reach for `continue` in most often.
|
||||
|
||||
## Roles
|
||||
|
|
|
|||
Loading…
Reference in a new issue