relay_claim
Atomically claim a task/handoff. session_id must identify this Codex run. A competing active claim returns claim_conflict. Keep lease_token; pass it to renew or update. Claims expire automatically; no background worker.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Display label; defaults to codex. | codex |
| thread_id | Yes | Task or handoff thread ID. | |
| session_id | Yes | Stable Codex chat/run identifier. Optional except when claiming work. | |
| lease_token | No | Existing lease token, only when renewing. | |
| lease_minutes | No | ||
| idempotency_key | No | Stable operation key. Reuse on retries. If omitted, identical arguments deduplicate automatically. |