cancel
Stop active Codex delegation runs by delegation ID, thread ID, or all. Use it when a run wedges or is unwanted; it waits for settlement and reports the outcome.
Instructions
Cancel active runs. delegationId selects one (announced in progress before spawn — the only handle if a run wedges at startup), threadId all on its thread, neither all. Waits for settlement; if a process tree survives the kill deadline, it still returns and the delegate result warns. Status: cancelled, nothing-active, or not-found (no active run with this ID).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | No | ||
| delegationId | No |