360 Secure SkillHub
360 安全技能中心

Cancel Dispatch Run

通过自带的 bash 脚本把 run-id 解析到唯一运行目录,向对应 tmux 会话发送取消命令并进行硬取消,同时把本地运行元数据更新为已取消,最后返回成功或具体错误信息。

edxi
edxi
热度 71.15
最近更新 2026-05-17 12:53:35
分类:自动化依赖:代码执行 / 读写文件应用场景:自动化脚本 / 任务管理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add miniade-cancel
Metadata
name
cancel
description
Cancel an active interactive dispatch run by run-id from slash command cancel. Use when user wants to stop a dispatchi or ralph-loop task immediately.

Run {baseDir}/scripts/run_cancel.sh with user args.

Contract

  • Format: /cancel <run-id>
  • Also supports: /cancel <project>/<run-id>

Local config

  • optional env file: ${OPENCLAW_DISPATCH_ENV:-<workspace>/skills/dispatch.env.local}
  • supports OpenClaw skills.entries.cancel.env injection
  • script is self-contained

Security disclosure

  • Reads only allowlisted env keys from dispatch.env.local using key=value parsing (no source).
  • Sends tmux keystrokes only to the run session resolved from local metadata.
  • Updates local run metadata (status=cancelled, exit_code=130).

Behavior

  1. Resolve run-id to exactly one result directory.
  2. Send /ralph-loop:cancel-ralph to that tmux session.
  3. Perform hard-cancel by requesting /exit and killing tmux session.
  4. Return success or precise error.