Skip to content

Add Chat Session Management: chat list, chat resume or --restore-session #2080

@sfyr111

Description

@sfyr111

Issue Description:

I’m currently working with Codex CLI and noticed that while .codex/history files are being recorded locally, there are no built-in commands to manage or resume chat sessions—unlike tools like Claude, which support -c -r to continue conversations.

Even though I’ve configured the history section in ~/.codex/config.json like this part:

history:
  maxSize: 1000
  saveHistory: true
  sensitivePatterns: []

…there’s still no way to list saved sessions or resume a previous chat. This severely limits usability and session continuity in real projects.

Strongly urge adding support for features such as:
• /chat list (or codex chat list) — to display saved session tags or session IDs
• /chat resume — to reload a previous conversation context
• Or even a global option like --resume-session or --load-history to reopen the last session

Such session persistence would allow smooth continuation across restarts, recover from crashes, and improve workflows—especially for long-running tasks or when working across multiple project sessions. Without this functionality, the history files exist but are practically unusable.

Hope this feature can be prioritized—thanks for considering!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions