Codex Desktop cloud task creation fails (Internal Server Error) while CLI/web succeed

Open 💬 2 comments Opened Mar 3, 2026 by bitfoundry-ai

Summary

Codex Desktop fails to create any cloud task for this workspace, while Codex CLI and web cloud tasks succeed in the same account/environment.

Impact

Desktop cloud mode is unusable for this repo/account combination; user must fall back to CLI/web.

Repro (stable)

  1. Open Codex Desktop on macOS.
  2. Open workspace: /Users/santhanakrishnan/Documents/Coding/workweaver.
  3. Try to submit any cloud task from composer.
  4. Observe UI error: Error creating task / Error creating cloud task.

Expected

Desktop should create a cloud task successfully (same as CLI/web).

Actual

Desktop fails every attempt.

Decisive evidence

Desktop logs (2026-03-03)

File: ~/Library/Logs/com.openai.codex/2026/03/03/codex-desktop-7e3605f5-8874-4667-b086-b53a56f8893f-36089-t0-i1-101527-0.log

  • 2026-03-03T10:15:46.431Z error [electron-message-handler] Error creating task errorMessage="{\"detail\":\"Internal Server Error\"}"
  • 2026-03-03T10:15:46.432Z error [electron-message-handler] [Composer] submit failed cwd=/Users/santhanakrishnan/Documents/Coding/workweaver ... mode=cloud
  • 2026-03-03T10:15:55.455Z error [electron-message-handler] Error creating task errorMessage="{\"detail\":\"Internal Server Error\"}"

Historical logs on 2026-02-22 show same path sometimes returning:

  • {"detail":"Environment not found"}

CLI succeeds in same session/env

  • codex login status => Logged in using ChatGPT
  • codex cloud exec --env bitfoundry-ai/workweaver "Echo cloud ok" => task URL returned (success)
  • /Applications/Codex.app/Contents/Resources/codex cloud exec --env bitfoundry-ai/workweaver "Echo cloud ok from bundled" => task URL returned (success)

Versions

  • Codex Desktop app version: 26.228.1430 (bundle 760)
  • Bundled codex binary: codex-cli 0.107.0-alpha.5
  • System codex CLI: codex-cli 0.107.0
  • OS: macOS (darwin), ARM64 host

Environment state snapshot

From ~/.codex/.codex-global-state.json:

  • electron-persisted-atom-state.environment.id = "bitfoundry-ai/workweaver"
  • label = "bitfoundry-ai/workweaver"

Remediation attempts already performed

  • Removed threads / started fresh (user-reported; repeated previously).
  • Cleared stale worktree cache previously (user-reported; repeated previously).
  • Revalidated auth and cloud access via CLI (codex login status, codex cloud list, codex cloud exec) — all OK.
  • Reset desktop cached environment object to minimal {id,label,is_pinned} and quarantined ~/.codex/worktrees for clean rebuild (non-destructive backups preserved).

Ask

Please investigate Desktop cloud task creation path for workspace/environment resolution mismatch vs CLI path, and return actionable diagnostics or a patch version.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗