cancel
Terminate active Codex delegation runs by ID, thread, or all, waiting until processes actually end.
Instructions
Cancel in-flight Codex delegations owned by this server. Returns once the processes have actually ended, not when the kill was requested. Name one with delegationId (announced in progress before the run starts, and the only handle for a run that wedges during startup) or threadId (cancels every delegation on that thread). With neither, every active delegation is cancelled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | No | Cancel every delegation running on this Codex thread | |
| delegationId | No | Cancel this one delegation, by the id announced in its progress stream |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes |