Skip to content

Named sessions for --resume #4163

Closed
Closed

Description

@sherifkozman

What feature would you like to see?

Feature Request: Named Sessions for --resume

Problem
The current --resume feature shows multiple sessions without clear identifiers. For developers who work across several projects, it’s easy to get lost and accidentally pick the wrong session since there are no names or tags to distinguish them.

Proposal
Introduce optional session names and tags:

  • codex --name "checkout-fix" to assign a human-friendly name.
  • Support --tags payments,urgent for lightweight grouping.
  • /session name <newName> and /session tags +tag -tag to rename or retag interactively.
  • Update the --resume picker to show name, repo, tags, and last_activity.
  • Allow fuzzy matching:
    codex --resume checkout → resumes session with matching name.

Why

  • Reduces confusion when resuming across many sessions.
  • Keeps everything local, backwards-compatible, and low-risk.
  • Minimal implementation: store metadata (name, tags, repo, branch, last_activity) in a meta.json file alongside existing session history.

Example UX
▸ checkout-fix [repo: shop-web] [tags: payments, urgent] [updated: 12m]
flaky-tests [repo: svc-orders] [tags: tests] [updated: 2h]
spike-mcp [repo: tools] [tags: research] [updated: 3d]

Next Steps
If maintainers agree this is valuable, I can prepare a PR implementing:

  • Metadata file write/read
  • CLI flags for --name and --tags
  • Resume picker rendering improvements
  • Basic interactive /session commands

Would love feedback on whether this direction makes sense before starting work.

Are you interested in implementing this feature?

Yes

Additional information

No response

Activity

  1. added
    enhancement
    on Sep 24, 2025
  2. andylizf commented on Sep 26, 2025

    @andylizf

    That's a good point. I've always found the session list confusing because it only shows the first message, which doesn't always reflect what the session is actually about. To address this, I implemented a tool to quickly glance at both the first and last messages for better context. https://github.com/andylizf/codexer

  3. zippoxer commented on Oct 5, 2025

    @zippoxer

    I made a PR for this :)

    #4741

  4. changed the title [-]Feature Proposal: Named Sessions for --resume (list, filter, and human-friendly aliases)[/-] [+]Named sessions for --resume[/+] on Nov 14, 2025
  5. m-ar-c commented on Jan 5, 2026

    @m-ar-c

    From the PR :

    Thanks for the contribution, and apologies for the slow response. We've received many PRs, and we don't have the bandwidth on the codex team to review all of them.

    We've updated our contribution guidelines to clarify that we're currently accepting contributions for bugs and security fixes, but we're not generally accepting new features at this time. We need to make sure that all new features compose well with both existing and upcoming features and fit into our roadmap. If you would like to propose a new feature, please file or upvote an enhancement request in the issue tracker. We will generally prioritize new features based on community feedback.

    Until this issue get enough upvote and zippoxer's PR get merged by openai, we can directly and manually look for the title to modify in the ~/.codex/sessions/YYY/MM/DD/*.jsonl files, as a workaround.

  6. f-gueguen commented on Jan 8, 2026

    @f-gueguen
  7. added
    CLI
    on Jan 30, 2026
  8. etraut-openai commented on Feb 4, 2026

    @etraut-openai
    Contributor

    This feature is now implemented. In the CLI, you can use the /rename slash command, and the name will appear in the resume list.

    The Codex app also supports a "Rename thread" option (either right click on the thread or double click it).

  9. nguyenbs commented on Feb 24, 2026

    @nguyenbs

    +1

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

    CLIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions