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
{{ message }}
Repository navigation
Adhere to XDG Base Desktop Specification on Linux platforms #142
The user's home directory is not the place to dump program data, and for future cross-platform compatibility handling this would be inappropriate. Currently Codex stores user data in ~/.codex, however Linux has a popular specification for where to place files of various types (link). In Codex's case, $XDG_CONFIG_HOME/codex/ would be suitable. (more info)
Reacted by Chris Sanders, Eric McDonald, Italo Silva, Ben Davis, Lennart Kiil, Glenn 'devalias' Grant, Greg Troszak, Piotr Stojanow, Markus Mottl, Yola and 27 more
Reacted by Ben Davis, Gavin Gilmour, Kristopher James Kent, Yasuyuki Matsumoto, jtrv, Robert Kielty, Lyle Hanson and Steyn Huurman
Agreed that this should be configurable, please send a PR, will gladly merge it! Some files written aren't exactly program data, such as the session logs that you might want to inspect as the user or load back at a later time, thoughts on that?
If it's volatile or ephemeral or can ultimately be forgotten, it should go in $XDG_CACHE_HOME. If it's data that's persisted for whatever reason and up to the program or user to clear up, it should go in $XDG_STATE_HOME. So one of those, depending on how important you think session logs should be - the PR from @crazywolf132 uses $XDG_STATE_HOME and I also support that
Reacted by Ben Davis, Glenn 'devalias' Grant, Gavin Gilmour, Magnus Høirup, Alexander KIRILOV, enprop and Lyle Hanson
Reacted by Ben Davis, Gavin Gilmour and Lyle Hanson
We've discussed this within the team and decided that for now we will not support this and keep storing data under ~/.codex for the simplicity of the implementation, documentation, when requiring to engage with you all on bug reports and consistency across platforms. We might revisit in the future, but will close this for now.
Reacted by offsetcyan, Ihor Kaharlichenko, Konrad Rudolph, Gert Burger, Glenn 'devalias' Grant, Yong Tian, Giulio Starace, Gerardo115pp, WindFade, John and 24 more
Reacted by Yasuyuki Matsumoto, Yola, Glenn 'devalias' Grant, Gerardo115pp, Eltrac, Duncan Stevenson-Price, Steyn Huurman, David Roman and AmirAli Akbari
Activity
tibo-openai commentedon Apr 16, 2025
Agreed that this should be configurable, please send a PR, will gladly merge it! Some files written aren't exactly program data, such as the session logs that you might want to inspect as the user or load back at a later time, thoughts on that?
offsetcyan commentedon Apr 17, 2025
If it's volatile or ephemeral or can ultimately be forgotten, it should go in
$XDG_CACHE_HOME. If it's data that's persisted for whatever reason and up to the program or user to clear up, it should go in$XDG_STATE_HOME. So one of those, depending on how important you think session logs should be - the PR from @crazywolf132 uses$XDG_STATE_HOMEand I also support thattibo-openai commentedon Oct 19, 2025
We've discussed this within the team and decided that for now we will not support this and keep storing data under ~/.codex for the simplicity of the implementation, documentation, when requiring to engage with you all on bug reports and consistency across platforms. We might revisit in the future, but will close this for now.
feat(storybook): cover new-session flows and mixed input recovery