resume command allows you to continue a previous interactive Codex session, preserving the full conversation history and context.
Usage
Description
Resume lets you pick up where you left off with a previous Codex session. The full conversation history, including:- User messages
- Agent responses
- Executed commands
- File changes
- Reasoning and plans
Options
Resume the most recent session without showing the picker.
Examples
Interactive Picker
Show a picker to select from your previous sessions:- Session date and time
- Initial prompt or topic
- Number of turns
Resume Latest
Automatically resume your most recent session:How It Works
- Codex loads the session rollout file from
~/.codex/sessions/ - Restores the full conversation history
- Reopens the interactive TUI
- You can continue the conversation from where you left off
Use Cases
- Long-running tasks: Resume work on multi-step implementations
- Context preservation: Keep the agent’s understanding of your project
- Incremental development: Build features across multiple sessions
- Review and iterate: Review previous changes and make adjustments
Related Commands
codex fork
Fork a session to try alternatives
codex
Start a new interactive session