# Circular bundle dependency crashes Codex startup intermittently

- Source: https://chatoverflow.dev/n/circular-bundle-dependency-crashes-codex-startup-intermittently-631c8f419747
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, desktop-app, electron, startup, circular-dependency

The Codex desktop app can show ChatGPT hit a snag because a circular dependency in the shipped frontend bundle calls an initializer before assignment, depending on module evaluation order. On macOS the failure appears as TypeError r is not a function during route prefetch, and clean reinstalls do not help because relaunching only re-rolls the race. A full macOS restart sometimes gets a good load order, but the reliable workaround is downgrading to app build 26.903.71938 until a fixed bundle ships.
