Unable to open past conversation history in VS Code extension
What version of the IDE extension are you using?
1.117.0
What subscription do you have?
plus
Which IDE are you using?
vs code
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Recently, I have been unable to open any past conversation records. When I click on a history item in the sidebar, the interface does not respond, and the previous chat content fails to load. There are no explicit error pop-ups, but the chat window remains blank or stuck.
What steps can reproduce the bug?
What steps can reproduce the bug?*
Open VS Code and ensure the GPT Codex extension is logged in.
Click on the "History" icon/tab to view past conversations.
Click on any specific historical conversation title from the list.
Observe that the chat interface does not update or display the selected history.
What is the expected behavior?
What is the expected behavior?
The extension should correctly fetch and display the full chat history of the selected conversation when clicked.
Additional information
_No response_
51 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I had the same issue, but it looks like the chat wasn’t actually lost — it was just loading very slowly.
What happened in my case:
Meanwhile, the same conversation in the right sidebar was still empty, but after a few minutes, it eventually loaded there as well.
So it seems like the issue is related to how the chat is rendered in the sidebar vs. when opened as a tab.
<img width="444" height="119" alt="Image" src="https://github.com/user-attachments/assets/e91bcb5d-3c6d-46cf-917c-a8504efd78e1" />
.
<img width="450" height="180" alt="Image" src="https://github.com/user-attachments/assets/7d68dce2-9ed3-4c7f-89c4-41efe3ff38d3" />
Hi, I wonder how can I open a chat in the chat tab you mentioned?
Same issue in Cursor. Chat not loading from history.
Same issue for me when I use code VScode extentions. I think this issue didn't happend on me in the past. Any idea to fix?
Some sessions load at a glacial rate (minutes–hours). It often says "Loading model" for a bit, too, though even once the model "loads", the screen stays blank for quite some time.
<img width="468" height="385" alt="Image" src="https://github.com/user-attachments/assets/0a791b22-62fd-4695-b06c-c09df34e1af0" />
---
One eternity later:
<img width="465" height="454" alt="Image" src="https://github.com/user-attachments/assets/a2b41054-6198-4802-941e-b958ae6db10c" />
---
Switching to certain chats (even if the chat has a much longer history) is instantaneous:
<img width="461" height="458" alt="Image" src="https://github.com/user-attachments/assets/0cde6cf8-a8b7-46df-b9ce-5d33ac468efd" />
Same. I wonder is it a new problem after the latest update?
I had the same problem with the VS Code Codex extension: older history entries were still listed, but opening them resulted in an empty or stuck chat view.
In my case the actual session files were not empty or lost. The problem was that some older rollout JSONL files contained legacy event types that the current VS Code extension apparently no longer renders correctly, for example:
custom_tool_callcustom_tool_call_outputpatch_apply_beginpatch_apply_endweb_search_callweb_search_endI asked Codex itself to repair the local history. It created backup copies, generated filtered copies of the affected JSONL session files without those legacy event types, added the repaired copies back to
~/.codex/state_5.sqliteand~/.codex/session_index.jsonl, and then I removed the original broken entries after verifying the repaired ones opened correctly.This was the prompt that worked well for me:
After reloading VS Code (
Developer: Reload Window), the repaired conversations opened correctly again.It worked for me. Thanks
Hello, I have this problem too and from output it seems that it is happening when repo is not github hosted, I can see this:
Multiple times - this project is hosted on private git server not github, but codex for some reason has "url=/wham/environments/by-repo/github/" when looking up some resource (perhaps the context)
Anyone have a solution for this? I attempted @metrax's solution but I didn't work consistently. The same issue still persists
same
Same issue.
Cursor and VS Code - working on a remote server.
Edit: Switching to pre-release version and reload fixed it temporary.
Later switched back to current version after issue occured again.
Edit: Using cursor now.
Similar to @metrax, I copied this whole github issue page you are on now into codex and said:
"read this github issue. i have the same issue trying to open the 'Review SFM pipelines readiness' convo wth codex. how can i fix in the easiest way?"
Codex inspected my local
~/.codex history, found the affected thread, made a backed-up repaired copy of the JSONL without the legacy event records, registered it as a new repaired thread, and fixed the local history/index metadata.After that I ran
Developer: Reload Windowfrom the VS Code command palette, and the repaired conversation appeared in history.Hopefully if you give CODEX this full github issue page including my comment here it can also fix it for you.
Codex is being extremely clunky for me. I have to cast magic spells to convince it to load a previous session and half the time it completely deadlocks when attempting to send a follow-up message.
Thanks Ben,It really works by your steps
I confirm this workaround.
Temp fix:
i have got this annoy issue many days ago, but until now it has not been fixed. I tried this work around, it works back. Thank you
not working for me
I noticed that in Codex CLI, conversation history opens normally. And for me, it turned out to be even more convenient than VS Code extension.
I changed my permission from full to default then it loaded. try changing permissions
Worked for me. thanks!
This is dumb, but it works. Also just disabling and enabling helped.
<img width="659" height="1063" alt="Image" src="https://github.com/user-attachments/assets/38bc8f5a-0392-4667-9439-4999b5f3c665" />
I used the method above, It still doesn't work.
Same for me, it still doesn't work
I solved this by installing another previous version, and reload the window
does anyone solve it?
Can someone please look at this? Bit ridiculous such a fundamental issue has been open for so long. Happens almost half of the time I open my laptop in the morning and often resulting in needing to completely restart VSCode. At this point, I'm considering switching back to copliot or claude subscription.
<img width="544" height="1027" alt="Image" src="https://github.com/user-attachments/assets/b6b55e50-2577-4ed1-a24a-7af434f9c6dc" />
Mine is completely empty, even with the version before or a version some weeks ago, after updating vscode itself.
<img width="440" height="995" alt="Image" src="https://github.com/user-attachments/assets/bbae4531-22ac-4041-adae-82372fd2804d" />
This is also happening to me, tried to disable -> restart VS Code -> Re-enable it and it still occurs. Even tried uninstalling and re-installing and it's the same issue.
The work around that fixes things for me is
but yes, really annoying and would be good if someone took the time to address this..
I’ve tried multiple versions of the Codex plugin and VS Code, and also installed Codex plugin on Cursor and Windsurf.In the end, I found that VS Code versions 1.117 and newer fail to load Codex chat properly: builds 118, 120 and 121 work intermittently, while it is completely broken from 124 . 1.116 works well. Maybe it is a bug of VS Code.
I dont know why it is. But hope someone can advise the vscode official to fix the bug.
this worked for me
<img width="1942" height="742" alt="Image" src="https://github.com/user-attachments/assets/4de98c9c-f8b6-4e9c-a476-ae2d499ae755" />
Today, i found maybe this plugin cause this bug, uninstall it and Codex plugin works well with vscode 1.125(latest version)
open VS Code terminal
------------------------------------
ls -la ~/.codex
ls -l ~/.codex/logs_2.sqlite*
sudo chown -R "$USER:$(id -gn)" ~/.codex
chmod -R u+rwX ~/.codex
rm -f ~/.codex/logs_2.sqlite*
after close vscode and reopen
It worked for me, thanks!
The problem is still not gone, deleting logs workaround sometimes doesn't work
<img width="709" height="1081" alt="Image" src="https://github.com/user-attachments/assets/e8b265c6-24ec-45b7-82e4-25caee569c1c" />
Same issue..again deleting .codex folder does not work either..
<img width="583" height="1016" alt="Image" src="https://github.com/user-attachments/assets/c6d6944b-baac-4920-a12a-f7a7f0698c35" />
very frustrating
I've tried the workarounds here and they don´t work.
well, this worked.
thanks
This worked for me.
I’ve tried all of the methods mentioned above, including clearing the cache and so on. This approach works when I use VS Code locally, but it stops working when I connect to the server via the VS Code SSH extension. The Codex on my server side still remains unresponsive.
After removing the logs_2.sqlite* files doing this fixed it for me:
I was having that issue in linux ubunutu, but maybe applicable for windows.
After reinstalling vscode and all of codex with all cache clearing, it still didn't work, so after an hour of debugging with Fable and failing and then another hour of debugging with codex cli, I managed to fix it, quoting what it outputted:
Thanks.
It was suddenly happening here again and these changes worked.
it works for me !
newest codex plugin!
版本: 1.127.0
提交: 4fe60c8b1cdac1c4c174f2fb180d0d758272d713
日期: 2026-06-30T10:52:33+02:00
Electron: 42.2.0
ElectronBuildId: 14159160
Chromium: 148.0.7778.97
Node.js: 24.15.0
V8: 14.8.178.14-electron.0
OS: Linux x64 6.17.0-35-generic
After installing an other version of Codex (not the lastest), it works for me. Easy peasy lemon squeezyy ;)
Please reopen this issue again, because it still happens to me.
I tries the workaround with
"disable-hardware-acceleration": true,and"ozone-platform": "x11",in the~/.vscode/argv.jsonfile, but it doesn't help. Most of the time Codex can't start properly in my VS Code, but sometimes it can. Seems like a race condition or something like that.I use Fedora 44 Linux with the proprietary 580xx NVIDIA drivers from RPM Fusion. My desktop environment is Cinnamon under X11 (Wayland isn't officially supported by Cinnamon as yet).
My hardware:
I use the latest version of VS Code, installed from the official Microsoft RPM repository:
Try installing an other version of Codex (not the lastest) in the Extensions of VS code, it works for me. Easy peasy lemon squeezyy ;)
Muito bom, aqui funcionou no win