Skip to content

[macOS Desktop] openai-bundled marketplace changes after quit and eventually causes “ChatGPT hit a snag” on startup #44738

Closed

Description

@KpNnn

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?

  1. Quit ChatGPT Desktop completely.

  2. Move the following generated directories out of ~/.codex:

    ~/.codex/.tmp/plugins
    ~/.codex/.tmp/bundled-marketplaces
    ~/.codex/plugins/cache/openai-bundled

  3. Launch ChatGPT Desktop.

  4. ChatGPT opens successfully.

  5. Confirm that the regenerated marketplace exists at:

    ~/.codex/.tmp/bundled-marketplaces/openai-bundled/.agents/plugins/marketplace.json

  6. While the app is working, the marketplace contains the sites plugin.

  7. Hash the marketplace.json file.

    Example working-state hash:
    10820bb69ee18160

  8. Quit ChatGPT normally with Cmd+Q.

  9. Hash the same marketplace.json again.

    Observed after quit:
    5cf6ceea0b6d67f4

  10. Relaunch ChatGPT.

  11. After one or more launch/quit cycles, ChatGPT Desktop shows:

    “ChatGPT hit a snag”

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

  1. added
    app
    on Sep 11, 2026
  2. added
    bug
    skills
    on Sep 11, 2026
  3. github-actions commented on Sep 11, 2026

    @github-actions
    Contributor
  4. explesy commented on Sep 11, 2026

    @explesy

    Additional reproduction on macOS arm64 with ChatGPT 26.908.31748 (build 8720).

    Observed UI sequence:

    1. The main ChatGPT window starts and is usable initially.
    2. About a minute later, the Pet/avatar appears briefly (roughly ~1 second).
    3. The avatar overlay then switches to the generic “ChatGPT hit a snag” error screen.
    4. The broken avatar/error window has no normal window controls, so it cannot be closed from the UI. This makes the failure much more disruptive than an isolated secondary-window error because the user cannot simply dismiss the overlay and continue using the main window.

    Local renderer diagnostics match the same frontend failure already discussed in related reports:

    errorMessage="r is not a function"
    errorName=Error
    name=AppRoutes
    rendererWindowAppearance=avatarOverlay
    

    Additional checks performed locally:

    • Clearing renderer caches (Code Cache / GPUCache etc.) did not help; the error reproduced.
    • App integrity/signature checks passed.
    • The main app-server remained alive.
    • A suspected Computer Use / SkyComputerUseService spawn-storm was not reproduced in a dedicated 90-second check (0 matching processes, no corresponding CUA/RemoteHostedPIP errors in that run).

    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.

  5. Wavez commented on Sep 11, 2026

    @Wavez

    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 function

    followed by the AppRoutes error boundary. The same run logged fs/readFile: No such file or directory; plugin reconciliation reused a marketplace listing sites, then immediately failed to install sites because it was not found in openai-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.

  6. stepchanges commented on Sep 11, 2026

    @stepchanges

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

    2026-09-11T17:43:04.397Z error [electron-message-handler] error boundary errorMessage="r is not a function" errorName=Error name=AppRoutes rendererWebContentsId=1 rendererWindowAppearance=primary rendererWindowFocused=false rendererWindowId=1 rendererWindowVisible=true
    2026-09-11T17:43:05.047Z warning [AppServerConnection] plugin_install_failed errorCategory=other errorMessage="plugin `sites` was not found in marketplace `openai-bundled`" errorName=Error marketplaceKind=local marketplacePath=~/.codex/.tmp/bundled-marketplaces/openai-bundled/.agents/plugins/marketplace.json pluginName=sites
    2026-09-11T17:43:05.047Z warning [BundledPluginsMarketplace] bundled_plugins_marketplace_install_failed bundledPluginSourcePath=./plugins/sites bundledPluginSourcePathKind=relative errorCategory=other errorMessage="plugin `sites` was not found in marketplace `openai-bundled`" errorName=Error installedPluginCacheRoot=~/.codex/plugins/cache/openai-bundled/sites installedPluginStatus=missing installPhase=install_plugin installReason=missing marketplaceName=openai-bundled
    

    componentStack top: Lazy (<anonymous>) → app://-/assets/app-initial-c932b6b5121b.js:8057:59005, under Suspense.

    One extra data point on the marketplace side: ~/.codex/.tmp/bundled-marketplaces/openai-bundled/plugins/ does contain a sites directory (11 plugins: browser, chrome, codex-app-tools, computer-history, computer-use, latex, messages, record-and-replay, sites, unified-computer-use, visualize), and its .materialization-key says appVersion: 26.908.31748, so it was generated by this build. The app bundle's Contents/Resources/plugins/openai-bundled/plugins/ ships 13 (adds deep-research and user-writing). Yet the reconciler reports sites missing 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.

  7. nii-101-km commented on Sep 12, 2026

    @nii-101-km

    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.

  8. yuzhu-oai commented on Sep 14, 2026

    @yuzhu-oai
    Contributor

    It has been fixed. Please update to the latest version.

  9. 0xdevalias commented on Sep 15, 2026

    @0xdevalias

    Some potentially relevant investigation from Codex (GPT-5.6 Medium):

    There is an important caveat: #44738 combined two symptoms that were probably independent:

    1. The fatal AppRoutes/r is not a function startup failure.
    2. sites reportedly missing from the generated openai-bundled marketplace.

    The first was apparently fixed in Desktop 26.908.40834. The second was not clearly fixed by the same release: #45138 reports sites-not-found and marketplace-path failures on a Windows package whose bundled Desktop runtime is already 26.908.40834.

    So my best-supported conclusion is:

    • The linked “fixed” statement most likely refers to the visible “ChatGPT hit a snag” failure.
    • That fix was a closed-source Desktop renderer-bundle change, probably first shipped in 26.908.40834.
    • It was not a Rust CLI/app-server fix.
    • The marketplace inconsistency described by [macOS Desktop] openai-bundled marketplace changes after quit and eventually causes “ChatGPT hit a snag” on startup #44738 may remain a separate unresolved problem.
    • OpenAI never publicly identified the exact internal commit or explicitly stated the first fixed package version, so 26.908.40834 is strongly evidenced rather than officially confirmed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugpetsskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions