Error: missing field `persistence`
Resolved 💬 2 comments Opened Jul 3, 2025 by cchen7 Closed Oct 27, 2025
💡 Likely answer: A maintainer (bolinfest, collaborator)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.2.0
Which model were you using?
codex-mini
What platform is your computer?
Darwin 24.5.0 arm64 arm
What steps can reproduce the bug?
codex debug seatbelt
Error: missing field persistence
in history
My configure
#cat ~/.codex/config.toml
model = "codex-mini"
provider = "azure"
[providers.azure]
name = "AzureOpenAI"
baseURL = "https://MYRESOURCE.openai.azure.com/openai/"
envKey = "MY_AZURE_OPENAI_KEY"
[history]
maxSize = 1000
saveHistory = true
sensitivePatterns = []
What is the expected behavior?
I'm not sure what's wrong in my toml config file. And there have no sample template for customize the model provider like Azure OpenAI
What do you see instead?
_No response_
Additional information
_No response_
2 Comments
@cchen7 the
[history]option deserializes into this struct:https://github.com/openai/codex/blob/c221eab0b5cad59ce3dafebf7ca630f217263cc6/codex-rs/core/src/config_types.rs#L55-L64
so the properties in your
config.tomldo not correspond to those values. It's possible that the parser is interpreting things as if you wrote:with no values?
Thanks for the bug report. Apologies for not replying sooner.
I'm going to presume that this issue is no longer relevant and close it out. If you're still seeing a problem here, let us know, and I'll re-open.