Oops, an error has occurred

Resolved 💬 11 comments Opened Dec 19, 2025 by nick-youngblut Closed May 16, 2026
💡 Likely answer: A maintainer (shijie-oai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.75.0

What subscription do you have?

ChatGPT Plus

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Darwin 25.1.0 arm64 arm

What issue are you seeing?

<img width="241" height="154" alt="Image" src="https://github.com/user-attachments/assets/b5de4550-d740-4024-b9f6-b16501615c3b" />

What steps can reproduce the bug?

Open Cursor with the Codex extension installed

What is the expected behavior?

_No response_

Additional information

The extension has worked without issue up until earlier today when it just stopped working. I re-installed codex via brew install codex this morning.

The codex CLI tool is working without issues.

Reinstalling the VS Code extension did not help. The extension still works for Cursor run in remote ssh sessions on an Ubuntu server.

The lack of error logs, and instead just a Oops, an error has occurred message is not helpful. I can see why others could not provide many details: https://github.com/openai/codex/issues/5930

View original on GitHub ↗

11 Comments

Olympicx · 7 months ago

What version of the VS Code extension are you using?
Cursor Version: 2.2.43 VSCode Version: 1.105.1 Electron: 37.7.0 Chromium: 138.0.7204.251 Node.js: 22.20.0 V8: 13.8.258.32-electron.0 OS:

What subscription do you have?
pro

Which IDE are you using?
Cursor

What platform is your computer?
Darwin arm64 25.1.0

What issue are you seeing?
Dear community and Open AI stuff, we need your help, please do not close the issue until we collect enough information from the users to catch the bug that is really annoying. I understand, that your goal is to close issues as fast as you can, but we have not enough info to prepare complete bug report.

"Oops, an error has occurred" and "Try again" button on white background

What steps can reproduce the bug?
When using Codex Extension, regular development and tasks, as usual, some times small, some times bigger getting "Oops, an error has occurred" and "Try again" button on the white background.

It is not clear enough how to reproduce the bug, but it happen to me 3-4 times yesterday and 2 times already today,

What is the expected behavior?
"Try again" button reload the extension properly without reloading IDE completely

Additional information
How to resolve? completely reload IDE only helps
Which is really annoying as far we are using different free and paid CLI and extensions, and some times you need to wait till accomplish the task within that particular CLI (aka Claude).

This is causing next thing - when you are waiting for Claude to reload, you work with Codex, then Codex crashed, and whole progress stops, because you can not reload IDE, as far you would lose the progress you made with Claude, and Codex is stack on this "Oops, an error has occurred" state.

If you could instruct me where to get logs, i would gladly provide them, if they even exist.

shijie-oai contributor · 7 months ago

Thanks for filing! Can you both confirm the version of the extension you are running by checking the extension version?

<img width="3212" height="1629" alt="Image" src="https://github.com/user-attachments/assets/a938e881-d19e-4a67-ae95-b8646f145ea5" />

Olympicx · 7 months ago

@shijie-oai
Version
0.4.53
Last Updated
2025-12-19, 01:23:13

cheezmil · 7 months ago

Oops, an error has occurred

<img width="724" height="2028" alt="Image" src="https://github.com/user-attachments/assets/31e5fbcc-5cf5-458d-a804-76cd995e1493" />

2025-12-21 22:26:48.098 [warning] [warn] is production release true warning false
2025-12-21 22:26:49.934 [warning] [IpcClient] initialize failed timeout
2025-12-21 22:27:13.584 [error] Error fetching vscode://codex/git-current-branch: TypeError: Cannot destructure property 'gitRoot' of 'undefined' as it is undefined.
2025-12-21 22:52:48.324 [warning] Failed to apply patches for 019b3fdb-8c70-7872-9124-4140eb858f94: Error: [Immer] minified error nr: 18. Full error at: https://bit.ly/3cXEKWf
2025-12-21 23:37:01.998 [warning] Failed to apply patches for 019b4172-9602-75d1-a98b-89164cf22a1d: Error: [Immer] minified error nr: 18. Full error at: https://bit.ly/3cXEKWf
2025-12-21 23:37:01.999 [warning] Failed to apply patches for 019b4172-9602-75d1-a98b-89164cf22a1d: Error: [Immer] minified error nr: 18. Full error at: https://bit.ly/3cXEKWf
2025-12-21 23:37:02.000 [warning] Failed to apply patches for 019b4172-9602-75d1-a98b-89164cf22a1d: Error: [Immer] minified error nr: 18. Full error at: https://bit.ly/3cXEKWf

Next, this message will be repeated continuously: "Failed to apply patches for 019b4172-9602-75d1-a98b-89164cf22a1d: Error: [Immer] minified error nr: 18. Full error at: https://bit.ly/3cXEKWf" too longggggggggggggggggggggggggggg...

I didn't find any useful information inside "Toggle Developer Tools":

 TypeError: Cannot read properties of undefined (reading 'type')
    at mapStateToLocalConversationItems (file+.vscode-resourc…NGyrNH.js:193:34663)
    at isPendingOrUnread (file+.vscode-resourc…GyrNH.js:1403:66379)
    at Array.filter (<anonymous>)
    at RecentTasksInline (file+.vscode-resourc…GyrNH.js:1403:64229)
    at ru (file+.vscode-resourc…qNGyrNH.js:57:51556)
    at Cu (file+.vscode-resourc…qNGyrNH.js:57:76509)
    at Lf (file+.vscode-resourc…qNGyrNH.js:57:87895)
    at up (file+.vscode-resourc…NGyrNH.js:57:127004)
    at k1 (file+.vscode-resourc…NGyrNH.js:57:125989)
    at Vu (file+.vscode-resourc…NGyrNH.js:57:125809)
Caused by: React ErrorBoundary Error: Cannot read properties of undefined (reading 'type')
    at RecentTasksInline (file+.vscode-resourc…GyrNH.js:1403:63082)
    at div (<anonymous>)
    at WithWindow (file+.vscode-resourc…GyrNH.js:1403:69693)
    at div (<anonymous>)
    at AppHeader (file+.vscode-resourc…GyrNH.js:174:273697)
    at Header$1 (file+.vscode-resourc…GyrNH.js:1524:88701)
    at WithWindow (file+.vscode-resourc…GyrNH.js:1403:69693)
    at div (<anonymous>)
    at HomePage (file+.vscode-resourc…GyrNH.js:1532:23371)
    at RenderedRoute (file+.vscode-resourc…BqNGyrNH.js:69:3871)
    at Outlet (file+.vscode-resourc…BqNGyrNH.js:69:8925)
    at AuthedLayout (file+.vscode-resourc…yrNH.js:1403:194576)
    at AppAvailabilityGate (file+.vscode-resourc…GyrNH.js:174:209317)
    at AuthedRoute (file+.vscode-resourc…yrNH.js:1403:195476)
    at RenderedRoute (file+.vscode-resourc…BqNGyrNH.js:69:3871)
    at Routes (file+.vscode-resourc…qNGyrNH.js:69:10142)
    at AppRoutes (file+.vscode-resourc…GyrNH.js:1890:42319)
    at InitialRouteHandler (file+.vscode-resourc…GyrNH.js:1532:32737)
    at ErrorBoundary (file+.vscode-resourc…yrNH.js:1403:245236)
    at FatalErrorGate (file+.vscode-resourc…GyrNH.js:1502:99892)
    at ShikiHighlightProvider (file+.vscode-resourc…GyrNH.js:1502:94195)
    at ToastManager (file+.vscode-resourc…NGyrNH.js:195:15776)
    at AppearanceProvider (file+.vscode-resourc…GyrNH.js:174:204566)
    at Ye (file+.vscode-resourc…qNGyrNH.js:134:8565)
    at AppIntlProvider (file+.vscode-resourc…GyrNH.js:1532:33634)
    at ft (file+.vscode-resourc…GyrNH.js:174:161193)
    at ut (file+.vscode-resourc…GyrNH.js:174:160455)
    at CodexStatsigProviderImpl (file+.vscode-resourc…yrNH.js:1403:197808)
    at CodexStatsigProvider (file+.vscode-resourc…yrNH.js:1403:197087)
    at MessageHandler (file+.vscode-resourc…qNGyrNH.js:1882:301)
    at AuthProvider (file+.vscode-resourc…GyrNH.js:174:206206)
    at Router (file+.vscode-resourc…BqNGyrNH.js:69:9130)
    at MemoryRouter (file+.vscode-resourc…BqNGyrNH.js:69:7613)
    at Provider$2 (file+.vscode-resourc…qNGyrNH.js:26:11044)
    at QueryClientProvider (file+.vscode-resourc…NGyrNH.js:81:140270)
    at QueryProvider (file+.vscode-resourc…GyrNH.js:1890:35945)
    at AuthNonceProvider (file+.vscode-resourc…GyrNH.js:174:208739)
    at PersistedStateProvider (file+.vscode-resourc…GyrNH.js:1890:34110)

I'm not sure if this is codex or not

jaredplumb · 4 months ago

My assumption is that the issue may be caused by the output window containing too much text, which could be triggering an error. It might be helpful to archive older content to reduce the load, or simply delete excess data once it exceeds a reasonable threshold.

jatmn · 2 months ago

i been running into this issue for every prompt session across all projects and "chats" within 5-30min for the last 9hrs or so.
about 90% of the time i cant get the session to re-open when i get the error, i have lost alot of work due to this :(

Windows 11
Desktop Codex 26.513.31313

imlegend19 · 2 months ago

Just upgraded Codex to 26.513.31313 on Windows 11, and I am not able to view any of my chats. I keep getting "Oops, an error has occurred". How can I downgrade to the older version temporarily?

laz-jamesfuller · 2 months ago

Same here

phoenixdaveth · 2 months ago

having the same problem!

samytheknightly · 2 months ago

Same here

etraut-openai contributor · 2 months ago

I'm going to close this thread because it's outdated. The OP reported a problem with the IDE Extension, and that issue was fixed long ago.