Skip to main content

effective_workdir

Function effective_workdir 

Source
pub fn effective_workdir(flag: Option<PathBuf>, cwd: PathBuf) -> Result<String>
Expand description

The run’s effective working directory: the --workdir flag when given (canonicalized, and refused early when it does not exist - a bad workdir would otherwise spawn an agent whose every tool call fails), else cwd (the directory the command was invoked from, resolved by the caller).