Codex Desktop window never appears on macOS 26.4 — all processes running but window count stays 0

Open 💬 2 comments Opened Jul 6, 2026 by buyicoder

Summary

Codex Desktop launches successfully on macOS 26.4 (beta) — all 14 processes start normally (main, GPU, network, storage, 2 renderers, app-server) — but the main window never appears. osascript -e "tell application \"Codex\" to get count of windows" consistently returns 0.

Clicking the Dock icon has no effect. open -a Codex returns exit code 0 but no window is created. The app appears to be "running" in the background but is completely unusable.

Environment

  • macOS: 26.4 (25E246) — beta
  • Codex Desktop: 26.623.101652 (4674)
  • Codex Framework: 149.0.7827.197
  • codex-cli: 0.142.5
  • Auth mode: chatgpt (token valid, last refreshed 2026-07-04)
  • Hardware: Apple Silicon Mac

Symptoms

  • All 14 Codex processes start and remain running (verified via pgrep)
  • 2 renderer processes are active (renderer-client-id=5 and renderer-client-id=6)
  • codex app-server is running and responsive
  • Git plugin sync completes normally (openai/plugins, compound-engineering-plugin)
  • logs_2.sqlite is recreated normally after deletion
  • But window count is always 0 — no UI is ever visible

Troubleshooting attempted (all unsuccessful)

Every one of these was attempted with a full process restart (killall -9) and verification:

| Step | Action | Result |
|---|---|---|
| 1 | Graceful quit + restart | Window still 0 |
| 2 | Force kill all processes + restart | Window still 0 |
| 3 | Renamed logs_2.sqlite (was 313MB, see #31111) | Window still 0 |
| 4 | Cleared GPU cache (GraphiteDawnCache/) | Window still 0 |
| 5 | Removed Electron Singleton lock files | Window still 0 |
| 6 | Reset electron-main-window-bounds to defaults | Window still 0 |
| 7 | Fixed onboarding state (welcome-pending → false) | Window still 0 |
| 8 | Launched with --disable-gpu --disable-software-rasterizer | Window still 0 |

Key observations

  1. No crash reports in ~/Library/Logs/DiagnosticReports/ — the app does not crash, it simply never creates a window
  2. Crashpad pending/ has 187 historical dump files but no new ones from current launches
  3. The logs_2.sqlite file had grown to 313MB due to high-frequency TRACE logging (matches #31111 exactly — same macOS 26.4.1, same app version)
  4. All renderer processes are alive and consuming normal CPU — they are rendering something, but no visible window is produced
  5. Launching the binary directly from CLI reports "正在现有的浏览器会话中打开" (opening in existing browser session) and exits

Related issues

  • #31094 — Same Framework version (149.0.7827.197) crashes in CrBrowserMain on macOS 26.6. Our case may be a non-crashing variant of the same root cause.
  • #31111 — Same app version on macOS 26.4.1 writes high-frequency TRACE logs to logs_2.sqlite. We observed the same 313MB bloat.
  • #31090 — Renderer crashes after subagent wait — may share a common rendering-layer instability.

Hypothesis

The temporal_rs library ( implicated in #31094's temporal_rs_PlainDateTime_hour crash ) may have a compatibility issue with macOS 26.x's system libraries. In our case, instead of crashing with EXC_BREAKPOINT, the renderer silently fails to produce a visible window — possibly because the error is caught internally but leaves the window creation in an unrecoverable state.

Expected behavior

Codex Desktop should create and display its main window on macOS 26.4.

Workaround

The codex CLI works normally. The codex app-server process also runs fine — only the Electron GUI window is affected.

View original on GitHub ↗

2 Comments

buyicoder · 1 month ago

Update: 2026-07-08 — Still broken after app auto-update

Codex Desktop auto-updated from 26.623.101652 to 26.623.141536 (binary modified 2026-07-07 08:25), but the Framework version is unchanged (149.0.7827.197, installed 2026-06-30). The window-not-appearing issue persists.

New symptom (worse than before)

Previously, osascript -e "tell application \"Codex\" to get count of windows" returned 0. After the update, it now returns:

execution error: "Codex"遇到一个错误:发生权限违例。 (-10004)

Apple Event error -10004 (errAEEventNotHandled / privilege violation) — the app process is running but completely unresponsive to Apple Events.

Additional findings

  1. Local API returns 502 — curl http://127.0.0.1:32122/ returns 502 Bad Gateway. The codex app-server process is running but not serving properly.
  1. System uptime: 2 days — macOS 26.4 beta has been running without restart. WindowServer instability on beta macOS after extended uptime is a known factor.
  1. logs_2.sqlite grew to 32MB in 2 days — the TRACE logging bloat (#31111) continues. At this rate it will hit 300MB+ within 2-3 weeks.

Confirmation

The root cause is confirmed to be Codex Framework 149.0.7827.197 (Electron/Chromium layer) incompatibility with macOS 26.x. App-level updates (26.623.101652 → 26.623.141536) do not resolve this because the Framework is not updated.

A Framework update (to a newer Chromium/Electron build compatible with macOS 26.x) is likely required to fix this.

Recommended fix from OpenAI side

Please ship a Codex Framework update based on a Chromium version that supports macOS 26.x. The current 149.0.7827.197 appears to have the temporal_rs / rendering layer incompatibility documented in #31094.

buyicoder · 1 month ago

Update: 2026-07-08 — Reboot did not fix; macOS 26.5.2 available

Full system reboot did not resolve the issue. After restart (uptime < 2 min), Codex processes start normally but:

  • osascript still returns -10004 privilege violation
  • Local API still returns 502
  • 2 renderer processes running but no visible window

macOS update available

  • Current: macOS 26.4 (25E246) — beta
  • Available: macOS Tahoe 26.5.2 (25F84) — recommended update, 3.7GB

Will test after upgrading to 26.5.2 and report back.

Summary of all attempts

| Attempt | Result |
|---|---|
| Graceful quit + restart | ❌ |
| Force kill + restart | ❌ |
| Clear logs_2.sqlite (313MB) | ❌ |
| Clear GPU cache | ❌ |
| Clear Singleton locks | ❌ |
| Reset window bounds | ❌ |
| Fix onboarding state | ❌ |
| Disable GPU (--disable-gpu) | ❌ |
| App auto-update (26.623.101652 → 26.623.141536) | ❌ |
| Full system reboot | ❌ |
| Upgrade to macOS 26.5.2 | ⏳ pending |