Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
ChatGPT Desktop Linux package: 26.908.31748 Bundled app-server reported at startup: 0.154.0-alpha.6.1 The installed package and the current OpenAI stable Debian repository both advertise 26.908.31748. The app also selects/downloads Codex primary runtime 26.909.12148.
What subscription do you have?
Paid ChatGPT plan. Exact account tier omitted from the public report because it does not appear relevant to reproduction.
What platform is your computer?
- Debian GNU/Linux 13 (trixie) - x86_64 / amd64 - KDE Plasma desktop - Installed from OpenAI's official Linux Debian repository
What issue are you seeing?
The official ChatGPT Linux desktop app fails during startup and displays:
ChatGPT hit a snag
Something went wrong. Try again to continue.
The web version of ChatGPT works normally on the same machine/account/network.
The local bundled Codex app-server starts successfully, the initialization handshake succeeds, and the app-server reaches connected. The failure then occurs in the Electron/React renderer.
Key log sequence:
[AppServerConnection] Current reported app-server version:
currentVersion=0.154.0-alpha.6.1
[AppServerConnection] initialize_handshake_result
outcome=success transportKind=stdio
[AppServerConnection] Codex CLI initialized
[AppServerConnection] app_server_connection.state_changed
next=connected
Immediately afterward:
[electron-message-handler] Initial route prefetch failed; rendering will retry
errorMessage="n is not a function"
errorName=Error
route=primary
windowType=electron
The renderer also reports:
Matched leaf route at location "/" does not have an element or Component.
This means it will render an <Outlet /> with a null value by default
resulting in an "empty" page.
The fatal renderer error is then caught by the application error boundary:
Electron renderer console [error]
TypeError: n is not a function
[electron-message-handler] error boundary
errorMessage="n is not a function"
errorName=Error
name=AppRoutes
This corresponds to the visible “ChatGPT hit a snag” screen.
A KDE System Settings → Shortcuts window also sometimes opens during startup and shows two entries such as:
ChatGPT shortcut: electron-accelerator-6291776:
No active shortcuts
This appears incidental rather than causal, because the renderer failure is independently reproduced with clean app state.
What steps can reproduce the bug?
Normal launch
- Install the current stable ChatGPT Linux package from OpenAI's Debian repository.
- Launch
chatgpt. - The window opens but then displays “ChatGPT hit a snag”.
- The renderer logs
TypeError: n is not a functionwithname=AppRoutes.
Reinstall does not help
sudo apt update
sudo apt-get install --reinstall chatgpt
pkill -fi chatgpt
chatgptThe same startup-fatal screen occurs.
Clean Electron profile + clean Codex home also reproduces
pkill -fi chatgpt
rm -rf /tmp/chatgpt-clean-profile
rm -rf /tmp/codex-clean
mkdir -p /tmp/codex-clean
CODEX_HOME=/tmp/codex-clean \
chatgpt --user-data-dir=/tmp/chatgpt-clean-profileThe same failure occurs.
Disabling apps/plugins also reproduces
pkill -fi chatgpt
rm -rf /tmp/chatgpt-noplugins
rm -rf /tmp/codex-noplugins
mkdir -p /tmp/codex-noplugins
cat > /tmp/codex-noplugins/config.toml <<'EOF'
[features]
apps = false
plugins = false
EOF
CODEX_HOME=/tmp/codex-noplugins \
chatgpt --user-data-dir=/tmp/chatgpt-nopluginsEven with a fresh profile and both features disabled, startup still fails with:
Initial route prefetch failed; rendering will retry
errorMessage="n is not a function"
followed by:
TypeError: n is not a function
name=AppRoutes
The fatal renderer failure occurs before the later bundled-plugin reconciliation, so plugin installation does not appear to be the primary trigger.
Package verification
dpkg-query -W -f='${Version}\n' chatgptreturns:
26.908.31748
The OpenAI stable Debian repository also advertises:
26.908.31748
and:
dpkg -V chatgptproduces no output.
What is the expected behavior?
The Linux desktop application should render its normal home/sign-in interface after the app-server initializes successfully.
A frontend routing/rendering exception should not replace the application with the fatal “ChatGPT hit a snag” screen.
Additional information
Confirmed during troubleshooting:
- ChatGPT works normally in the browser.
- Reinstalling the official
.debdoes not change the behavior. dpkg -V chatgptreports no modified/corrupt tracked package files.- A completely fresh Electron user-data directory reproduces the failure.
- A completely fresh
CODEX_HOMEreproduces the failure. - Explicitly disabling both
appsandpluginsstill reproduces the same renderer exception. - The bundled app-server itself initializes successfully and reaches
connected; the observed startup-fatal failure is in the renderer/UI path. - The app currently selects Codex primary runtime
26.909.12148while the stable desktop package remains26.908.31748. This may be normal independent runtime rollout behavior; I am not asserting that the version difference is causal. - During another clean-profile run, a later bundled-plugin reconciliation produced
plugin 'sites' was not found in marketplace 'openai-bundled', but the no-plugins reproduction shows theAppRoutesrenderer failure occurs independently and earlier.
Possibly related but not exact duplicates:
- [Linux/XFCE] ChatGPT Desktop 26.818.61809 emits protocol, feature-key, listener, and Chromium errors on startup #40412 — Linux startup emits the same root-route warning, but the reporter states the application remains usable. In this report the startup failure is fatal.
- [Bug/Issue] ChatGPT hit a snag #41988 — “ChatGPT hit a snag” on Windows caused by repeated app-server termination. In this report the app-server initializes successfully and remains connected while the renderer fails.
Activity
github-actions commentedon Sep 11, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
r is not a function; rollback to 26.903.9818.0 fixes it #44748Powered by Codex Action
matkielesinski-cmd commentedon Sep 11, 2026
Ubuntu 24.04.5 confirmation and verified rollback
I reproduced this exact issue after upgrading the official AMD64 DEB from
26.903.71938to26.908.31748.Environment:
26.908.31748(build 8720)0.154.0-alpha.6.126.909.12148Observed after the upgrade:
The error occurred on two launches/activations. A controlled full quit and restart initially loaded the primary window successfully, but the same
TypeErrorthen occurred in the hiddenavatarOverlayrenderer. The app-server initialization and account lookup both succeeded,dpkg -V chatgptreported no modified/missing package files, and there was no OOM, disk, GPU-process or auth failure.I then downgraded only the application package to the cached official
26.903.71938DEB without clearing the profile. On that version, both the primary renderer andavatarOverlaymounted their routes successfully. Two subsequent launcher activations did not reproduce theTypeErrororAppRouteserror. The existing profile/state remained valid and its key project/thread structure counts were unchanged.This confirms a regression in
26.908.31748; clearing the user profile was not required. The package is temporarily held locally to prevent the broken build from being reinstalled while this issue is open.UM-PT commentedon Sep 11, 2026
I can reproduce the same issue on a different Linux/CPU platform.
Environment:
Observed renderer failure is the same:
TypeError: n is not a function
name=AppRoutes
app://-/assets/app-initial-97cc141651bb.js:6182
Immediately before the failure I also get:
Matched leaf route at location "/" does not have an element or Component.
This means it will render an with a null value by default resulting in an "empty" page.
I also reproduce the repeated:
[install-primary-runtime] primary_runtime_update_poll_failed
Failed to download primary runtime manifest (404).
Isolation tests performed:
The failure still reproduces with both a fresh user-data-dir and a fresh CODEX_HOME.
This suggests the issue is not limited to Debian/x86_64 and also affects Ubuntu 24.04 on ARM64/aarch64.
hmusamaofficial commentedon Sep 11, 2026
I can reproduce the same startup-fatal issue on Ubuntu 24.04 LTS (x86_64).
26.908.31748sudo apt update && sudo apt install --only-upgrade chatgptreports that this is already the newest version.Relevant desktop logs:
followed by:
I fully terminated ChatGPT and moved its local
~/.config/ChatGPT/~/.cache/ChatGPTdata to backups so it launched with fresh local state. The same fatal screen andAppRouteserror still occurred.This appears to be the same renderer/UI startup failure, not an account, network, or package-update issue.
alex9assassin4 commentedon Sep 11, 2026
Additional Raspberry Pi 500 / Debian ARM64 / Labwc confirmation, with diagnostics in #44818 (closing that report as a duplicate).
Package 26.908.31748 produces
TypeError: n is not a function,name=AppRoutes, atapp://-/assets/app-initial-97cc141651bb.js:6182. The local UI remains on “ChatGPT hit a snag” while remote conversation and execution on the affected machine remain usable. We also observedprimary_runtime_update_poll_failedwith a manifest 404; its relationship to the renderer failure is unconfirmed.Hard reload, full relaunch, clearing only rebuildable Chromium Cache/Code Cache, and an existing-task deep link did not recover the interface.
dpkg -V chatgptpassed. This extends the matching reports to Raspberry Pi hardware. Rollback has not yet been tested on this machine.alex9assassin4 commentedon Sep 11, 2026
Follow-up to the Raspberry Pi 500 ARM64 report (#44818): rollback to the cached official
26.903.71938package restored the local UI. The user confirmed the interface is working after a full relaunch, anddpkg -V chatgptpassed. The existing profile and sign-in were preserved; no additional cache/profile reset was performed for the rollback.The captured post-rollback startup log contains zero occurrences of
TypeError: n is not a functionorname=AppRoutes. It still contains oneprimary_runtime_update_poll_failedoccurrence, despite the working UI. Thus the updater 404 alone is not sufficient to produce the fatal interface failure in this observation.This provides additional rollback evidence on Debian ARM64 / Labwc for a regression in
26.908.31748. It is a successful startup and user confirmation, not a long-duration stability test.eantyshev commentedon Sep 11, 2026
Ubuntu 24.04.5 / X11 / amd64 confirmation on the newer ChatGPT Desktop 26.908.40401.
The failure signature is identical:
The app-server 0.154.0-alpha.6.2 initializes and reaches connected, while the primary renderer remains visible/focused but enters the AppRoutes error boundary. There are no Crashpad dumps.
A fresh Electron user-data directory reproduces the failure. A side-by-side run of cached 26.901.31953 with a fresh user-data directory, on the same machine and using the same account/config, proceeds into the normal thread UI without the exception. The failure in 26.908.40401 occurs before account/config responses complete and before bundled-plugin reconciliation.
This confirms that the Linux renderer regression persists in 26.908.40401 and is not caused by Chromium profile state, bundled plugins, GPU startup, or a native crash.
Platform output: Linux 6.8.0-94-generic x86_64 x86_64
UsmanTariq2 commentedon Sep 11, 2026
Same issue. cannot open the app at all.
Migueldos2 commentedon Sep 11, 2026
Confirming the same regression on Ubuntu 26.04.1 LTS x86_64 with ChatGPT Desktop 26.908.40401 and kernel 7.0.0-31-generic.
Environment: XFCE over XRDP/X11.
The application window opens and the local app-server connects successfully via stdio. Account lookup also succeeds with
authenticatedAccountPresent=trueandresult=succeeded.The primary renderer then fails consistently with:
Initial route prefetch failed; rendering will retryTypeError: n is not a functionname=AppRoutesThe issue persists after:
The official OpenAI APT repository currently offers 26.908.40401 as the latest and only available version. Codex CLI and the bundled app-server continue to work normally; only the desktop renderer is unusable.
A screenshot of the error screen is available.
yuzhu-oai commentedon Sep 11, 2026
Fixed
fslurrehman commentedon Sep 12, 2026
Resolved in Version 26.908.40834, Released Sep 11, 2026
UsmanTariq2 commentedon Sep 12, 2026
Yes, resolved in above mentioned version by @fslurrehman
titaniumjones commentedon Sep 20, 2026
Still reproducible for me on a newer Linux build.
Platform
26.908.40401The application launches but immediately shows:
Neither Try again nor Update ChatGPT resolves it.
The backend appears to initialise successfully:
The renderer then fails with:
followed by:
and the error boundary reports:
The failure is reproducible after fully terminating and restarting the application.
The browser version of ChatGPT works normally on the same machine/network.
I’m adding this because this issue was previously marked resolved, but the same
AppRoutesrenderer failure is still present in package version26.908.40401.