Automatic session cleanup
Resolved 💬 3 comments Opened Nov 11, 2025 by miliog Closed Nov 12, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What feature would you like to see?
One feature I'm missing after switching to codex is the ability to automatically delete sessions and logs after N days. In Claude Code it's called cleanupPeriodDays. Right now you'd have to write a cronjob to achieve that obviously, but I'd prefer it to be integrated.
Similarly, an incognito command-line argument and config option would be neat as well, so that all session data remains in memory.
Organizations with strict retention policies would welcome those features, as well as people who value privacy.
Additional information
_No response_
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Thanks for the suggestion. I changed the title to focus on auto cleanup. If you'd like to suggest an incognito mode, please file a separate feature request. This allows us to track and prioritize feature request separately. We generally use upvotes (thumbs-up reactions) to guide our priority decisions.
Okay, it was already suggested in #6015 as noted by the bot, so I guess this can be closed. I'll make a separate issue for the incognito mode. Thank you.