Skip to content

Add rollout-path parameter to codex tool for session resume #8614

Closed as duplicate

Description

@tiann

What feature would you like to see?

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
  • RolloutRecorder::get_rollout_history() - rollout file parsing

Additional information

No response

Activity

  1. added
    enhancement
    on Dec 30, 2025
  2. added
    mcp
    mcp-server
    on Dec 30, 2025
  3. etraut-openai commented on Dec 30, 2025

    @etraut-openai
    Contributor

    We're tracking this feature in #6168.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementmcpmcp-server

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions