pub fn command_directory(input: &str) -> Option<PathBuf>Expand description
Directory a tool command is judged in.
A relative workdir resolves against the session directory, as opencode’s
shell tool does with path.resolve(directory, workdir). A directory that
cannot be resolved is not a refusal: the session directory is used when
it exists, and otherwise the process directory.