Codex VS Code extension appears broken while opening previous chats

Product:

- Codex VS Code extension / `openai.chatgpt`
- Extension version observed in logs: `26.422.30944`
- Codex app/server version observed in logs: `0.125.0-alpha.3`
- Environment: VS Code Remote on Windows 11 with WSL2 and current folder mounted to a FAT32.
- Codex state path: user-level `~/.codex`
- Note that the current project is small (~50 files) and VSCode and Codex Extension version is up-to-date as of this writing

Summary:

After VS Code reload/restart, existing Codex chats initially appear not to open. Clicking active chat history entries can appear to do nothing. After waiting around 5-10 seconds, the current chat appears and older active chats can then be opened and switched between normally. This makes the UI look broken even though the chat history data is present and eventually usable. Clicking away before the delay elapses seems to cancel the startup process so that subsequent clicks have the same issue. If the delay period completes before clicking out of the chat, all historic chats are then accessible.

Expected behaviour:

The UI should show a clear loading/restoring/startup state while Codex extension/app-server/history restore is still warming up. If chat history is not ready yet, clicking a chat should either queue the action or display a clear “Codex is starting / restoring chats” message.

Actual behaviour:

Immediately after reload/restart, chat panes can appear blank and chat history clicks can appear to do nothing. There is no obvious indication that Codex is still starting. After a short delay, the same chats become readable.

Reproduction notes:

1. Have at least two active Codex chats in the VS Code extension.
2. Reload or restart VS Code.
3. Immediately try opening a current chat and an older active chat.
4. Observe that the UI can look blank/unresponsive.
5. Wait about 5-10 seconds.
6. The current chat appears; the older active chat can then also be opened.

Local investigation:

- Active chat rollout files exist under `~/.codex/sessions/YYYY/MM/DD/`.
- The older active chat rollout was valid JSONL and parsed successfully.
- SQLite `threads` table marked both chats active and pointed to valid rollout paths.
- A stale `session_index.jsonl` timestamp was repaired, but the main observed issue remained startup/readiness latency rather than missing data.
- The CLI exposes `codex resume <SESSION_ID>`, suggesting the underlying session data is recoverable.

Relevant log patterns:

- Extension log shows startup and app-server spawn:

  • `Activating Codex extension`
  • `[CodexMcpConnection] Spawning codex app-server`
  • `[startup][renderer] app routes mounted after 1280ms`
  • `[startup][renderer] app routes mounted after 1810ms`
  • `maybe_resume_success conversationId= …`

- During/after startup there are repeated warnings:

  • `codex_app_server::transport: dropping overload response for connection ConnectionId(0): outbound queue is full`
  • `[IpcClient] Received broadcast but no handler is configured method=thread-stream-state-changed`
  • `[IpcClient] Received broadcast but no handler is configured method=thread-read-state-changed`

Impact:

This creates the impression that Codex chat history restore is broken or that old conversations are lost. A visible readiness/loading state would prevent confusion and reduce risky user attempts to manually edit/delete `~/.codex` state.

Suggested fix:

- Add a startup/restoring indicator in the VS Code extension while app-server and chat history restore are warming up.
- Disable or queue chat-history clicks until `thread/resume`/history APIs are ready.
- Avoid silently ignoring clicks during app-server backpressure.
- Consider surfacing a non-scary message like “Codex is restoring chats…” with retry/progress feedback.

Welcome to the forum!

You can discuss Codex-related issues here, but the official place to report them is the OpenAI Codex GitHub Issues.

A quick search using ChatGPT surfaced several similar reports, for example:

It’s worth searching existing issues to see if any match your case and that may include relevent feedback, suggestions and workarounds. If you find a relevant one, consider adding a :+1: reaction to help increase its visibility.

If nothing aligns, you can open a new issue—just be sure to include clear and reproducible steps.

I have same problem. v5.5 and V5.4 sessions are loading after long wait or not loading at all after VSCode restart.

+1 for this issue. This started recently that randomly some chats would not load, some would, some load is left for a few minutes.

Not sure if it’s related or not but some time prior to this issue I had manually edited some chat names in the json files because there is no way to do this in the UI.

It’s been happening to me too this week , it happened in VSCode on both Windows and Linux.

Same issue here, except that no amount of clicking around will bring up the content of the selected session. It’s an incredibly obnoxious.

I’ve been chatting with Codex across several different VSCode windows for hours, and I need to refer back to the content of the various chats pretty regularly. Unfortunately VSCode crashed and restarted, which is why I’m trying to reopen my chat sessions from today. I’m using this for a client job on a limited timeframe so, honestly, I really just need it to work.

Yes, I know there are JSONL files in ~\.codex\sessions but these are not friendly to work with. I need to pretty print them to really make sense of them, which I can’t easily do because I’m having to work on a locked down Windows laptop on which I can’t install anything. Given the information in the files is highly confidential I also can’t plug it into some online prettifier.

There’s maybe a VSCode extension I might be able to install in order to prettify the file but the point is I shouldn’t need to do all of this: it should just work. It should just display the chat history for whatever session I select. It should work: Claude works, Copilot works but, unfortunately, in this context I have to use Codex so it’s pretty frustrating that it doesn’t work.

All I get is a blank panel for each chat session even though I can see those chat sessions have been fully preserved on disk, and are uncorrupted.

Please fix this. I need chat history and at the end of the day Codex isn’t open source: it’s paid for, in this case by my client. This needs to work.

VSCode 1.119.0 (installed via Software Center which is the only way I can install anything, so I can’t “just upgrade to the latest version” if this isn’t it)

Electron 39.8.8

Codex v26.506.31421

Windows 11 (version 10.0.22631.6936)