History of local Chats in VS Code are not saved
Resolved 💬 28 comments Opened Aug 30, 2025 by IvoDimitrovPro Closed Sep 3, 2025
💡 Likely answer: A maintainer (gpeal, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex --0.5.0
Which model were you using?
5
What platform is your computer?
Microsoft x64
What steps can reproduce the bug?
Start a local chat in VS Code (insider) with Codex IDE
Restart VS Code
No history of the local chats
What is the expected behavior?
To have history the local chats
What do you see instead?
nothing.
Only past cloud history.
<img width="588" height="611" alt="Image" src="https://github.com/user-attachments/assets/960a7c8c-a088-4b78-8ce2-52cef961589c" />
<img width="601" height="614" alt="Image" src="https://github.com/user-attachments/assets/6efa0afe-f3be-4e1a-b64f-6a6c8bd3a35c" />
Additional information
_No response_
28 Comments
I found the .jsonl files with my history in C:\Users\NAME\.codex\sessions
Thank God, they are not lost.
But still... they are not loaded or visible in the history panel of Codex IDE.
And I can't resume my sessions. Have to manually sent the file in the chat so we can be on the same page.
Same for me
Same here, they are saved until the window is reloaded then they disappear
Facing the same issue
I'm using codex extension on VSCode. The local chat disappear when I simply move the codex window to a different panel.
This also, yes. Same thing for me.
+1 for this. It's really annoying!
I have the same issue: after restarting VS Code, the local tasks are not available as recent tasks or in the task history.
VS Code on macOS
same
I am using VSCode on Windows 11 with a Remote-SSH connection to my Raspberry Pi 4. In VSCode, I use the latest OpenAi/Codex (29.08.2025) extension with GPT-5 in my OpenAI Plus subscription.
My default Codex settings are:
Local
SwitchMode = Agent
Reasoning Effort = Medium
Unfortunately, my codex tasks always get lost whenever I switch projects.
Why does this happen and how can I fix it?
I've just had this issue too using VSCode on macOS. The chat and all the history disappeared when I moved the codex window to a different panel. I can see the history still exists in
/Users/[username]/.codex/sessionsHad the same issue via a remote-SSH connection.
On the remote machine, sessions can be found in /home/$USER/.codex/sessions.
The same on MacOS, Codex extension v0.4.0 and 0.5.0
+1
+1 , its making process so much troblesome , it should be resolved asap.
Can confirm - all history lost on reload and even moving the codex panel to a new location in vs code window wipes all current and past chat history too. This chat history should really be saved to a user's codex account or chatgpt history. I don't care where it goes, as long as it is saved somewhere useful.
I have the same issue. After restarting the VSCodium, the extension warns me that it failed to load the history
+1, The same on MacOS. Codex extension v0.4.0
+1, always using cloud for now.
Few other things to note:
Duplicate of #1991
I had this same issue for the past 2 weeks, i just opened my most recent .jsonl file in vs code at the below path as stated by the author of this thread:
C:\Users\NAME.codex\sessions
Refreshed my extensions and now I can see my local chat history in the codex extension.
This may have been the fix, or maybe openAI just happened to fix the issue at the same time and it was just a coincidence but it works now.
I saw that they fixed it yesterday. I can see my local chat history now.
@gpeal marked this as a duplicate of [#1911 ](https://github.com/openai/codex/issues/1991 )but it actually is not. This is about the chat history in the extension not the CLI. And it's still not fixed for me on the latest version of the extension in vs code.
@smolcompute pre-release 0.5.12 has the history issue fixed.
Although many other issues still exist, but we're expecting to see them fixed soon. (for example deletion of local tasks)
Thanks. When you say fixed, do you mean going forward or have the old chats reappeared for you? I've switched to the pre-release, restarted the extension and vs code too, but I still only can see the past 2 days in the chat history.
Having the same issue. Windows did an update and all my local chat history is gone.
I found out that it was because I was running codex in WSL.
Running it normally on Windows terminals can see history.
I'm guessing the WSL disk is not in sync or that codex doesn't know how to see the windows user folders for history?
Left: WSL / Right: PowerShell
<img width="1011" height="324" alt="Image" src="https://github.com/user-attachments/assets/bd9b9960-b89e-456d-8ac7-d5cbcbaee2b6" />
Same issue here but I found the trick: you can enter the topic on key worlds, from the chat you are looking for, in the search bar, it will find it. I had a heart attack yesterday night. I applied a big change to my project and of course the chat had to disappear...