Named sessions for --resume
Resolved 💬 6 comments Opened Sep 24, 2025 by sherifkozman Closed Feb 4, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
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,urgentfor lightweight grouping. /session name <newName>and/session tags +tag -tagto rename or retag interactively.- Update the
--resumepicker to showname,repo,tags, andlast_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 ameta.jsonfile 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
--nameand--tags - Resume picker rendering improvements
- Basic interactive
/sessioncommands
Would love feedback on whether this direction makes sense before starting work.
Are you interested in implementing this feature?
Yes
Additional information
_No response_
6 Comments
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
I made a PR for this :)
https://github.com/openai/codex/pull/4741
From the PR :
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/*.jsonlfiles, as a workaround.If that helps, a small TUI to handle rename / tags / archive: https://github.com/lucent-lab/codex-session-manager
It comes with no warranty
edit: more simply use this npm https://www.npmjs.com/package/codex-session-manager
This feature is now implemented. In the CLI, you can use the
/renameslash 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).
+1