Continue a Codex session
codex_follow_upSends a follow-up instruction to a previous delegation by thread_id, reusing retained context so only the new prompt is needed.
Instructions
Send a follow-up message to a previous delegation using its thread_id. Codex retains the earlier context, so only the new instruction needs to be sent. Like a delegation, it is sent to OpenAI and spends the user's Codex usage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Override the model for this turn. Defaults to the thread's last model from memory or, on a registry miss, Codex's session file; if neither has it, the configured default, else the call is refused. | |
| prompt | Yes | The follow-up instruction. | |
| sandbox | No | Sandbox policy for this turn. Uses the configured default when omitted; read-only when unset. | |
| thread_id | Yes | The thread_id reported by a previous codex_delegate call. | |
| working_dir | No | Absolute directory to resume in. Defaults to the directory the thread last ran in. | |
| auto_approve | No | Not supported on follow-ups: true is refused and nothing runs. | |
| output_schema | No | A JSON Schema object for this turn's final message, which then comes back as JSON in a delimited block. OpenAI's structured outputs apply: every object needs "additionalProperties": false and every property listed in "required". At most 64 KiB serialised. | |
| timeout_seconds | No | ||
| reasoning_effort | No | Override the reasoning effort for this turn. Defaults to the thread's last effort when the model is unchanged, otherwise to the configured or model default. |