codex - 💡(How to fix) Fix project-scoped session persistence

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

What variant of Codex are you using?

CLI

What feature would you like to see?

A project-stopped session persistence mechanism to allow a session resume that is project and/or project-activity scoped rather than the current codex --resume --last, or manual session-id management.

Proposal:

new command-line option: e.g. codex --session-file <file-path> usage: via codex --session-file .codex-session

Instructs codex to write the session-id to the specified file when the session ends, rather than just outputting it to stdout in the form of a message as it currently does. It may also want to include the usage stats in this file as that is also out-of-band data that is most useful in a structured format owned by codex connected to the session.

When starting a codex session; if --session-file <path> is present it would automatically resume the specified session.

Goals:

  • To improve non-sequential work with multiple projects and better context management for multiple activities.

  • Improve the functionality for human driven sessions and agent driven sessions. Cleanly enable shared human and agent activity on the same project with flexible scoping.

Additional information

You could also consider a more human oriented change addition to the proposal with slightly less friction. --use-session-file where the name of the session-file is hardcoded.

While it might break some existing wrappers, usage-stats and current session-id message should maybe written to stderr, rather than stdout.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING