async fn handle_shell_stop(
__arg0: State<AppState>,
__arg1: Json<ShellStopRequest>,
) -> impl IntoResponseExpand 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 dev → task.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).