You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(cli): enforce call-local Bash workdir instead of silently ignoring it #1050
A public ToolExecutor::execute_with_metadata("bash", ...) call with workdir: "missing-directory" and command touch marker succeeds and creates marker in the bound root. The command should be rejected because the requested directory does not exist. The canonical Bash schema advertises call-local workdir and requires executors without pinned-subdirectory support to reject it rather than silently weakening the contract.
This was observed in an isolated temporary fixture with the canonical tool schemas projected and a permissive sandbox. A source-preservation refusal control correctly prevented execution; the workdir case then ran. No real user directory was modified.
Source ownership
At base 8ee927c1714a19d82081a004b1c7f0635675e50d, CLI prepare_bash_invocation and shell_run_config do not resolve the call's workdir. The Server executor uses the existing shared resolve_bash_workdir owner. This behavior predates the external-observation removal in #1048; that fix does not modify workdir preparation.
Expected correction
Use the canonical call-local workdir resolution/pinning boundary on CLI/User Runner, or explicitly reject unsupported subdirectories before startup. Preserve path confinement and execution facts. Cover existing, missing, outside-root and symlink/retarget cases through public execution, with a marker proving the command did not run on refusal.
Activity