You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add rollout-path parameter to codex tool for session resume #8614
enhancementNew feature or requestmcpIssues related to the use of model context protocol (MCP) serversmcp-serverIssues related to the use of the `codex mcp-server` subcommand
Add rollout-path parameter to codex tool for session resume, This enables MCP clients to maintain session continuity across restarts or reconnections, preserving conversation history and context.
Current Behavior
The MCP server's codex tool only supports starting new sessions. There is no way to resume a previous session from a rollout file.
While ConversationManager in codex-core already has resume_conversation_from_rollout() capability, this functionality is not exposed through the MCP server interface.
Proposed Enhancement
Add an optional rollout-path parameter to the codex tool that allows resuming a session from a previously saved rollout file.
{
"prompt": "Continue working on...",
"rollout-path": "~/.codex/sessions/2025/01/02/rollout-xxx.jsonl"
}
When rollout-path is provided, the session should be restored from the rollout file instead of starting fresh.
Use Case
This enables MCP clients to maintain session continuity across restarts or reconnections, preserving conversation history and context.
Related Code
ConversationManager::resume_conversation_from_rollout() - existing resume logic in codex-core
enhancementNew feature or requestmcpIssues related to the use of model context protocol (MCP) serversmcp-serverIssues related to the use of the `codex mcp-server` subcommand
Activity
etraut-openai commentedon Dec 30, 2025
We're tracking this feature in #6168.