Skip to main content

shell_exec

Function shell_exec 

Source
pub(crate) async fn shell_exec(
    state: &AppState,
    cmd: CommandShellExecData,
) -> Result<ShellExecResult, String>
Expand description

shellexec → run a shell command and return output. Invoked by the !cmd prefix in the agent pane composer.

Host agents: sh -c in the agent’s working directory (all platforms; Git Bash provides sh on Windows, located by backend::posix_shell). Container agents: docker exec sh -c via bollard. The host cmd:cwd is not valid inside the container — the command runs in the container’s own working directory.