Codex VSCode Extension - How to name/rename a task?
OpenAI Developer Community
May 16, 2026
I took a look at this by first reviewing your prompt and then walking through the steps manually, since I am somewhat familiar with the .codex directory.
What quickly drew my attention was the reference to .codex/state_5.sqlite. That path appears to be hardcoded, and when I checked my own .codex directory, I did not find a state_5.sqlite file or directory. That said, I think your general approach of inspecting the .codex directory is correct, and it is what I would do as well.
One manual step that did work was searching the entire directory as plain text. Think grep; in my case, I used Notepad++. That search showed that the task name was located in:
~\.codex\session_index.jsonl
Discussion in the ATmosphere