You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, CODEX_HOME/history.jsonl grows without bound. If you use Codex a lot, this can get really long. We have seen folks accidentally feed in giant prompts that resulted in this file being gigabytes in size!
Note that we do some stuff with advisory locking to ensure only one instance of Codex can write at a time. We also do some [possibly overengineered] work to ensure that each session of Codex CLI sees a consistent history as the user uses up/down to cycle through messages.
Activity
Respect history max_bytes when appending
etraut-openai commentedon Nov 15, 2025
Closing in favor of #6015, which has more upvotes
bhack commentedon Nov 15, 2025
@etraut-openai not closed
bolinfest commentedon Dec 15, 2025
This specific issue was solved via #6242.
Respect history max_bytes when appending