codex_job_status
Check the status and lifecycle state of an asynchronous background job. Returns elapsed time, expiry, and whether the result is available, enabling efficient polling without retrieving full results.
Instructions
Check a background job's lifecycle state without fetching the full result.
Use after any *_async call (codex_delegate_async, codex_consult_async,
codex_review_changes_async). Returns status, elapsed time, expiry, and
result_available; when it is true, call codex_job_result. Free — no model call.
Honor poll_after_ms between polls — for a running job it GROWS with elapsed
runtime (bounded), so following it backs you off instead of tight-looping (a
delegate often runs ~20s). expires_at is null while running and is set once the
job finishes; results are then retained ttl_seconds past that completion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job_id returned by an *_async call (codex_*_async); recover lost ids with codex_job_list. | |
| workspace_root | No | Absolute path to the target repository root. Pass it (or rely on an MCP root) so the call targets the intended repo; otherwise it falls back to the server's own cwd and meta.workspace_warning is set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |