handle_shell_stop

Function handle_shell_stop 

Source
async fn handle_shell_stop(
    __arg0: State<AppState>,
    __arg1: Json<ShellStopRequest>,
) -> impl IntoResponse
Expand description

POST /api/v1/shell/stop — stop a running persistent shell.

Called by agentmux-mcp’s ShellStop tool. Tree-kills the shell’s process group (so task devtask.exe/node grandchildren die too), which makes the runner publish a stopped exit event. Returns { stopped } — false if the id is unknown (never started or already exited).