`history` doesn't work in headless mode
Resolved 💬 4 comments Opened May 16, 2025 by homanp Closed Aug 7, 2025
What version of Codex is running?
0.1.2505140839
Which model were you using?
gpt-4.1
What platform is your computer?
Linux 6.1.102 x86_64 x86_6
What steps can reproduce the bug?
codex -a auto-edit -m "gpt-4.1" --quiet "My name is John"codex -a auto-edit -m "gpt-4.1" --quiet "What's my name?"- Codex does not remember the
What is the expected behavior?
History should work in headless mode similar to interactive mode.
What do you see instead?
History not working, or at least agent not being able to access history.
Additional information
config.json
{
"model": "gpt-4.1",
"approvalMode": "auto-edit",
"fullAutoErrorMode": "ask-user",
"notify": true,
"history": {
"saveHistory": true,
}
}This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗