From codex-toolkit
Cancel a running Codex background job by job ID (prefix match supported) or the only active job if unspecified. Reports details like kind, summary, and elapsed time.
npx claudepluginhub xiaolai/codex-toolkit-for-claude --plugin codex-toolkit[job-id]## User Input ## Workflow ### Step 1: Find the job to cancel Parse `$ARGUMENTS`: | Input | Action | |-------|--------| | (empty) | Cancel the only active job (error if 0 or >1 active) | | `<job-id>` | Cancel the specified job (prefix match supported) | If no active jobs: And STOP. If multiple active jobs and no id specified: And STOP. ### Step 2: Kill the job process 1. Read the job's PID from the state file 2. Send SIGTERM to the process group (kills the job and any child processes) 3. Update the job status to `cancelled` in the state file 4. Log the cancellation ### Step 3:...
/cancelCancels an active background Codex job in this repository using the provided job ID.
/cancel-swarmStops active swarm workers by listing tasks and halting in-progress ones with TaskStop, then reports counts of completed, interrupted, and pending tasks.
/cancelCancels stuck or orphaned executions in the session. Invoke also via /kill or /abort aliases.
/cancelCancels active execution loop for a specified or current feature, shows phase/progress/iterations before cleanup, deletes state file, keeps progress history.
/cancelCancels execution loop for spec by name/path or current, cleans up state files, removes spec directory, clears markers, and updates index.
/cancelPauses in-progress Shipyard work with a git checkpoint tag, updates state to paused, appends history, scans pending tasks, and displays resumption summary.
Share bugs, ideas, or general feedback.
$ARGUMENTS
Parse $ARGUMENTS:
| Input | Action |
|---|---|
| (empty) | Cancel the only active job (error if 0 or >1 active) |
<job-id> | Cancel the specified job (prefix match supported) |
If no active jobs:
No active Codex jobs to cancel.
And STOP.
If multiple active jobs and no id specified:
Multiple jobs are active. Specify which one to cancel:
| Job | Kind | Status | Elapsed | Summary |
| --- | --- | --- | --- | --- |
{list of active jobs}
Usage: /codex-toolkit:cancel <job-id>
And STOP.
cancelled in the state filekill -- -{pid} 2>/dev/null || kill {pid} 2>/dev/null || true
# Codex Cancel
Cancelled {job-id}.
- Kind: {kind}
- Summary: {summary}
- Was running for: {elapsed}
Check `/codex-toolkit:status` for the updated queue.