Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
ChatGPT Desktop 26.908.31748 Bundle version: 8720 Bundle identifier: com.openai.codex
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Darwin 27.0.0 arm64 arm macOS 27.0 (Build 26A428) Apple Silicon / arm64
What issue are you seeing?
ChatGPT Desktop on macOS repeatedly enters a broken startup state showing:
“ChatGPT hit a snag”
The web version of ChatGPT works normally.
I can temporarily recover the Desktop app by moving only the generated bundled-plugin/runtime cache out of ~/.codex:
~/.codex/.tmp/plugins
~/.codex/.tmp/bundled-marketplaces
~/.codex/plugins/cache/openai-bundled
After these generated directories are rebuilt, ChatGPT launches normally.
However, after quitting and relaunching the app, the generated openai-bundled marketplace changes and the failure returns.
I verified this by hashing:
~/.codex/.tmp/bundled-marketplaces/openai-bundled/.agents/plugins/marketplace.json
chatgpt-diagnosis-sanitized.txt
chatgpt-diagnosis-sanitized.txt
While ChatGPT was working:
10820bb69ee18160
After quitting ChatGPT:
5cf6ceea0b6d67f4
After one or more subsequent launch/quit cycles, ChatGPT Desktop becomes unable to start again and shows “ChatGPT hit a snag”.
The local Codex app-server itself appears to start successfully. Logs show:
app_server_connection.state_changed ... next=connected
Local app-server project migration completed projectCount=2
The failure occurs later in the Desktop/UI/plugin initialization path.
Relevant errors observed include:
Initial route prefetch failed; rendering will retry
errorMessage="r is not a function"
Request failed
message="No such file or directory (os error 2)"
method=fs/readFile
bundled_plugins_marketplace_install_failed
plugin sites was not found in marketplace openai-bundled
Importantly, once the app successfully finishes rebuilding the marketplace, sites is actually present in marketplace.json.
This suggests a possible bundled-plugin marketplace reconciliation / initialization consistency issue rather than a permanently missing plugin.
What steps can reproduce the bug?
-
Quit ChatGPT Desktop completely.
-
Move the following generated directories out of ~/.codex:
~/.codex/.tmp/plugins
~/.codex/.tmp/bundled-marketplaces
~/.codex/plugins/cache/openai-bundled -
Launch ChatGPT Desktop.
-
ChatGPT opens successfully.
-
Confirm that the regenerated marketplace exists at:
~/.codex/.tmp/bundled-marketplaces/openai-bundled/.agents/plugins/marketplace.json
-
While the app is working, the marketplace contains the
sitesplugin. -
Hash the marketplace.json file.
Example working-state hash:
10820bb69ee18160 -
Quit ChatGPT normally with Cmd+Q.
-
Hash the same marketplace.json again.
Observed after quit:
5cf6ceea0b6d67f4 -
Relaunch ChatGPT.
-
After one or more launch/quit cycles, ChatGPT Desktop shows:
“ChatGPT hit a snag”
-
Moving the generated plugin/runtime cache directories away again restores the app temporarily.
The issue is reproducible without deleting Codex sessions, memories, authentication data, config.toml, or project data.
What is the expected behavior?
ChatGPT Desktop should remain launchable across normal quit/relaunch cycles.
Regenerating or reconciling the openai-bundled runtime marketplace should always produce a valid and internally consistent plugin state.
A plugin marketplace/cache reconciliation failure should not make the entire Desktop application unable to start.
Additional information
There is also a possibly related Pet/avatar overlay symptom.
When the main ChatGPT window is working, enabling the Pet can create an avatarOverlay window that independently displays “ChatGPT hit a snag”.
Logs have shown filesystem read errors associated with:
rendererWindowAppearance=avatarOverlay
However, the main startup failure can also reproduce with the Pet disabled, so I am not claiming that the Pet is the root cause.
A third-party project, XiaoDuoYa/codex-with-chatgpt, had previously been installed in this macOS user profile. It has since been disabled during testing.
I am including this only as an environmental variable. I have not established that it causes the failure.
The state that consistently correlates with temporary recovery and subsequent failure is the app-managed/generated plugin runtime state under:
~/.codex/.tmp/bundled-marketplaces/openai-bundled
~/.codex/plugins/cache/openai-bundled
I have preserved the working and broken cache states and can provide a sanitized diff if useful.
Related issues that may involve similar Desktop plugin/runtime reconciliation behavior:
#25758
#25813
Feedback ID:
no-active-thread-01a08f13-d829-7de2-8b9f-78cf90a36c2e
Activity
github-actions commentedon Sep 11, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
explesy commentedon Sep 11, 2026
Additional reproduction on macOS arm64 with ChatGPT 26.908.31748 (build 8720).
Observed UI sequence:
Local renderer diagnostics match the same frontend failure already discussed in related reports:
Additional checks performed locally:
This looks consistent with the shipped frontend
AppRoutes/ circular-import regression rather than a cache or app-server crash. The lack of window controls on the failed avatar overlay is an important UX consequence: once the overlay enters the error boundary, there is no obvious way to dismiss it.Wavez commentedon Sep 11, 2026
Additional reproduction on a newer build: ChatGPT 26.908.40401 via Homebrew Cask, macOS 26.6.2 arm64.
Startup logs show the bundled app-server (0.154.0-alpha.6.2) initialized and reached connected, then the renderer failed with:
Initial route prefetch failed ... r is not a functionfollowed by the
AppRouteserror boundary. The same run loggedfs/readFile: No such file or directory; plugin reconciliation reused a marketplace listingsites, then immediately failed to installsitesbecause it was not found inopenai-bundled.A clean temporary profile reproduced the failure. Rolling back to 26.908.31748 fixed startup with the same user profile. This looks like the same frontend/plugin-marketplace initialization family, but the failing build here is 26.908.40401.
stepchanges commentedon Sep 11, 2026
Same signature here. macOS 26.6.2 (25G83), arm64. ChatGPT 26.908.31748, build 8720, commit ee6bcf39. Reproduces on every launch today: 10 error-boundary hits across 6 launches since 09:07 MDT, in both the primary window and the avatarOverlay window. The instance running before this build was installed ran ~15 h with none.
From
~/Library/Logs/com.openai.codex/2026/09/11/codex-desktop-*-t0-*.log(current instance):componentStack top:
Lazy (<anonymous>)→app://-/assets/app-initial-c932b6b5121b.js:8057:59005, underSuspense.One extra data point on the marketplace side:
~/.codex/.tmp/bundled-marketplaces/openai-bundled/plugins/does contain asitesdirectory (11 plugins: browser, chrome, codex-app-tools, computer-history, computer-use, latex, messages, record-and-replay, sites, unified-computer-use, visualize), and its.materialization-keysaysappVersion: 26.908.31748, so it was generated by this build. The app bundle'sContents/Resources/plugins/openai-bundled/plugins/ships 13 (addsdeep-researchanduser-writing). Yet the reconciler reportssitesmissing from.agents/plugins/marketplace.json, so the materialized manifest and the materialized plugin tree disagree.Nothing on the macOS side explains it: no crash reports for the app or its helpers, no proxy or TLS interception, memory fine. Will try the cache-move workaround from the OP.
nii-101-km commentedon Sep 12, 2026
Reproduced on the official ChatGPT Desktop Linux package, Ubuntu 24.04.4 LTS (x86_64).
Startup reaches bundled plugin reconciliation, where the runtime marketplace explicitly reports sites in marketplacePluginNames, but installation immediately fails with plugin 'sites' was not found in marketplace 'openai-bundled'. The app then shows “ChatGPT hit a snag” and the Retry/Update buttons are non-responsive.
Moving ~/.codex/.tmp/bundled-marketplaces/openai-bundled and ~/.codex/plugins/cache/openai-bundled aside temporarily allowed one successful launch, but the failure returned on a subsequent launch.
The regenerated and previous marketplace.json files are byte-identical (diff -u produces no output), and both contain "name": "sites". Neither the old nor regenerated plugin cache contains a sites/ directory.
Relevant startup sequence:
bundled_plugins_runtime_marketplace_reused ... pluginNames=["codex-app-tools","sites",...]
→ bundled_plugin_install_requested ... pluginName=sites reason=missing
→ plugin_install_failed ... "plugin 'sites' was not found in marketplace 'openai-bundled'"
→ bundled_plugins_reconcile_completed
Update — reproducible Linux startup workaround / possible timing-sensitive renderer bug
I found an additional reproducible behavior on the official ChatGPT Desktop Linux package (Ubuntu 24.04.4 LTS, x86_64).
A normal launch:
chatgpt
consistently reaches the “ChatGPT hit a snag” screen. The backend/app-server and authentication initialize successfully, but the renderer fails during initial routing with:
Initial route prefetch failed; rendering will retry errorMessage="n is not a function"
followed by:
TypeError: n is not a function
and a React Router warning from AppRoutes.
However, launching the same installed application with the same user state as:
chatgpt --enable-logging=stderr --v=1
reproducibly starts the application successfully. No cache or profile directories need to be deleted or moved.
I verified this by closing the working instance and repeating the comparison: normal launch fails, while the launch with --enable-logging=stderr --v=1 succeeds.
I also previously reproduced the renderer failure with a separate --user-data-dir, so this does not appear to be explained simply by a corrupted Electron cache/profile.
Since --enable-logging=stderr --v=1 should primarily affect Chromium/Electron logging but changes the startup outcome, this may indicate a timing-sensitive initialization/race condition in the renderer or runtime configuration path.
Separately, the logs still show the bundled marketplace inconsistency where sites is listed in marketplacePluginNames but installation fails with:
plugin 'sites' was not found in marketplace 'openai-bundled'
However, the n is not a function renderer failure occurs earlier in the startup sequence, so I cannot establish that the sites issue is the cause of this particular startup failure.
yuzhu-oai commentedon Sep 14, 2026
It has been fixed. Please update to the latest version.
0xdevalias commentedon Sep 15, 2026
Some potentially relevant investigation from Codex (GPT-5.6 Medium):