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_

View original on GitHub ↗

28 Comments

IvoDimitrovPro · 10 months ago

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.

andreasasprou · 10 months ago

Same for me

archodev · 10 months ago

Same here, they are saved until the window is reloaded then they disappear

hishampazheri · 10 months ago

Facing the same issue

tsbyq · 10 months ago

I'm using codex extension on VSCode. The local chat disappear when I simply move the codex window to a different panel.

IvoDimitrovPro · 10 months ago
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.

daviddlow · 10 months ago

+1 for this. It's really annoying!

jwmolenaar · 10 months ago

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

moxi000 · 10 months ago

same

ClaudioBsh · 10 months ago

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?

dannyshisler · 10 months ago

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/sessions

MaxenceBouvier · 10 months ago

Had the same issue via a remote-SSH connection.
On the remote machine, sessions can be found in /home/$USER/.codex/sessions.

noname-oni · 10 months ago

The same on MacOS, Codex extension v0.4.0 and 0.5.0

iamsuperzb · 10 months ago

+1

AL-Cybision · 10 months ago

+1 , its making process so much troblesome , it should be resolved asap.

Daimon-Law · 10 months ago

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.

crazyn2 · 10 months ago

I have the same issue. After restarting the VSCodium, the extension warns me that it failed to load the history

meetwab · 10 months ago

+1, The same on MacOS. Codex extension v0.4.0

aleksandar-radev · 10 months ago

+1, always using cloud for now.

Few other things to note:

  1. selection for Cloud/Local is being reset when going back and forth to a chat. I'd prefer keeping the selected option when not in chat, so i don't need to change every time.
  2. screen when not in chat is always empty, showing only 3 chats and then "Show more". Space could either be used for something, or just show all chats.
gpeal contributor · 10 months ago

Duplicate of #1991

CallumWilkinson · 10 months ago

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.

IvoDimitrovPro · 10 months ago
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.

smolcompute · 10 months ago

@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.

aleksandar-radev · 10 months ago

@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)

smolcompute · 10 months ago

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.

nonlin · 8 months ago

Having the same issue. Windows did an update and all my local chat history is gone.

alizreik-au · 6 months ago

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" />

kacisse · 6 months ago

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...