Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Problem
When Codex CLI hits an unrecoverable error (usage limit, crash, stream loss, etc.), the entire workflow context is lost. In real projects we often run multiple Codex instances in parallel (different tasks/workspaces). After a restart there is no way to know which session to resume, and prior context persists even after a user-issued /clear in the session.
Proposal: /resume with multi-session support
-
Persistent checkpoints per session
- Codex stores resumable state on disk (e.g., ~/.config/codex/sessions/<session_id>/),
including:
• workspace path
• model + reasoning settings
• brief instruction hash / title
• last N steps / actions (enough to safely continue)
• timestamps, token usage snapshot, CLI version
- Codex stores resumable state on disk (e.g., ~/.config/codex/sessions/<session_id>/),
-
Session listing & selection
- New command: /resume
• Shows active/resumable sessions with a short, informative line per sessions of the current workspace:
[session_id] <model/effort> <age / last activity>
• Optional filters: --model, --since, --status - Resume a session: /resume <session_id>
• Resumes exactly that session, even if multiple Codex instances exist. - Convenience: /resume (no args) → interactive picker if >1 candidate.
- New command: /resume
-
Context isolation & integrity
- Checkpoints are tied to a specific workspace path to avoid cross-contamination.
-
Respect /clear and explicit cleanup
- If the user runs /clear inside a session, Codex marks the session state as “cleared”
and:
• stops reusing its old context for /resume
• optionally keeps a minimal audit trail (metadata only) for transparency - New command: /resume purge [--all | --older-than=7d]
• Hard-deletes stored session data of the current workspace.
- If the user runs /clear inside a session, Codex marks the session state as “cleared”
-
Quality-of-life
- /resume --from-step N → resume from a specific checkpoint step.
- /resume --amend "…" → amend instructions before continuing.
- /resume show → detailed view (last steps, warnings, diffs).
- JSON output flags (e.g., --json) for scripting/CI.
-
Concurrency & safety
- Locking to prevent two Codex processes from resuming the same session concurrently.
- Clear error if a session is in-use by another PID/host, with an override (--force).
-
Guardrails awareness
- If the prior stop was caused by a limiter/guardrail, /resume should:
• show the reason and next reset ETA if available
• optionally delay/resume automatically when the window resets
- If the prior stop was caused by a limiter/guardrail, /resume should:
Benefits
- No loss of long-running reasoning work (multi-million token context).
- Works in real-world setups with multiple parallel Codex instances.
- Predictable cleanup: /clear truly clears, purges are controllable.
- Safer resumes with workspace integrity checks and explicit selection.
Reacted by Jisoo Park, NakamuraYuichi, Takuma HASHIMOTO, occili, Naoki Yoshida, richardasymmetric, Omar Khaled, Josh Lyon, Brad Prince, Kazuhide Oki and 71 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
radixs commentedon Aug 19, 2025
This is important. Most tools have sessions and without functionality to resume sessions this tool is seriously lacking.
ifokeev commentedon Aug 26, 2025
@etraut-openai @ae-openai Team, please prioritize this issue.
jasonwblock commentedon Aug 26, 2025
+1 for this. Essential feature.
Mercurial commentedon Aug 29, 2025
agreed we need this + native web search to make codex competitive with Claude Code
ImSingee commentedon Aug 29, 2025
@Mercurial FYI web search is already available (
codex --search)softclone commentedon Sep 3, 2025
honestly shocked this hasn't been implemented.
embarrassing for you guys. you are a billion dollar company. please get this out by the end of the week
ermaxinc commentedon Sep 3, 2025
Tocktock commentedon Sep 4, 2025
Essential Features I Believe Are Needed:
streichsbaer commentedon Sep 4, 2025
Feature Request: Ability to Name Sessions
When many sessions run in parallel, it becomes difficult to quickly identify the right one.
Claude’s early experience highlighted this problem, though summaries improved it somewhat:
However, summaries are still limited. Allowing users to explicitly name sessions, and/or set a name when starting one, would make managing multiple instances much easier and provide a smoother workflow.
mneilly commentedon Sep 4, 2025
FWIW - in the interim you can prompt Codex to find the session file, summarize and continue development where you left off and see how that works until things are updated.
Followed by:
aleksandar-radev commentedon Sep 4, 2025
Damn, yet another version 0.5.3, still not developed ? I'm curious what the reason is, as its a basic functionality
gpeal commentedon Sep 4, 2025
We will have experimental support in the next release. However, we may iterate on the API shape (slash commands, etc)
Extension support to follow shortly.
#3135
2 remaining items
softclone commentedon Sep 8, 2025
👏 👏 👏 got it in before monday! well done! ty ty
tubzby commentedon Sep 9, 2025
Hello team!
Same here, failed to load tasks, I think I have lost my prompt and the context!
bqrkhn commentedon Sep 9, 2025
How will this issue fix: #2911
gpeal commentedon Sep 9, 2025
@flexorx of course we do, and want this just as much as you. We, just like you, are also humans with limited hours and are working as quickly as we can to build all of the things you, us, and everybody else want! We could have opted to not release Codex until we built every feature we wanted but we didn't want to do that either.
gpeal commentedon Sep 9, 2025
I just released 0.5.6 to the VS Code pre-release channel which supports resuming old local conversations and will fully release it laster today if things are looking good.
In case you missed it, you can
codex --resumein the CLI as well. Note that the CLI API may change a bit over the next week. If you use it and it stops working, runcodex --helpand it should point you at the new subcommand/flag.Thanks for your patience here, everybody.
0xdevalias commentedon Sep 9, 2025
Presumably if the current version stops working it will be because they rolled out a change and will unhide the help at the same time; but just to save some people the confusion in the interim; the help for
--resumeis currently hidden (at least up to0.31.0; haven't checked beyond that) as per:aleksandar-radev commentedon Sep 10, 2025
@gpeal Thanks a lot, keep up the good work! : )
Although, an issue i found (not important) is that "archive" or "delete" doesn't work on local tasks, saying "Failed to delete task".
ryanmaclean commentedon Sep 16, 2025
In 0.36.0 this seems to be
codex resumedbabokin commentedon Sep 16, 2025
Neither
--resumenor--continuework.codexversionv0.36.0. It's not just hidden, it's not available. Missing this feature is critical for me, as sometimes codex has problems with accepting input after the long session in my environment - it basically doesn't accept most of key strokes, only restarting helps. But the session is lost.Please reopen until it's implemented and available. Otherwise it's misleading and confusing.
0xdevalias commentedon Sep 17, 2025
@dbabokin Did you look at the comment above yours that suggests it changed to
resume(not--resume) in0.36.0?Which is also documented in
codex --help:And
codex resume --help:As well as the release notes:
dbabokin commentedon Sep 17, 2025
I read the thread, but apparently missed this 🤦🏻♂️ Looks like I need more sleep :) My apologies. Thanks for implementing this!
smolcompute commentedon Sep 20, 2025
Hi @gpeal . On the current version of the extension I can only see chats for the past 2 days despite my log history going back weeks in .codex and, if that folder is only for CLI, there should still be a lot more history for the extension.. Any idea why that is?
andylizf commentedon Sep 26, 2025
Yes they changed the API I think. I think that's because the structures of the logging dirs. I use https://github.com/andylizf/codexer to solve this issue.
derwaldgeist commentedon Oct 24, 2025
Love that resume command!
One side note here: I had asked the model if there was a list of sessions, but it claimed there was not and I should keep a record of them myself. And then I landed here via Google search...