codex - 💡(How to fix) Fix Scope CLI prompt recall history to Codex conversation/session [2 comments, 2 participants]

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…
GitHub stats
openai/codex#21202Fetched 2026-05-06 06:24:57
View on GitHub
Comments
2
Participants
2
Timeline
9
Reactions
0
Timeline (top)
labeled ×5commented ×2unlabeled ×2

Code Example

[history]
persistence = "session"
RAW_BUFFERClick to expand / collapse

What variant of Codex are you using?

CLI

What feature would you like to see?

Add a new history.persistence mode:

[history]
persistence = "session"

CLI prompt history should match the context sent to the model. Fresh session, fresh history. Resumed session, restored history.

Right now I have to choose between no history or global history.

Additional information

codex-cli 0.128.0

extent analysis

TL;DR

Implementing a new history.persistence mode, such as "session", could provide the desired behavior of matching CLI prompt history to the context sent to the model.

Guidance

  • The current implementation only offers two options: no history or global history, which does not meet the user's requirements.
  • To achieve the desired functionality, a new mode, "session", could be added to the history.persistence configuration, allowing for fresh history in new sessions and restored history in resumed sessions.
  • The user is currently using codex-cli 0.128.0, which may not support the requested feature, so a potential solution could involve modifying the existing code or waiting for an update that includes this feature.
  • Verifying the fix would involve testing the CLI with the new history.persistence mode set to "session" and ensuring that the prompt history behaves as expected in both new and resumed sessions.

Notes

The implementation details of the new history.persistence mode are not provided, so the exact steps to achieve this functionality are uncertain.

Recommendation

Apply workaround: Since the requested feature is not currently available in codex-cli 0.128.0, the user may need to modify the existing code or wait for an update that includes this feature.

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

codex - 💡(How to fix) Fix Scope CLI prompt recall history to Codex conversation/session [2 comments, 2 participants]