Codex Desktop cloud task creation fails (Internal Server Error) while CLI/web succeed
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)
- Open Codex Desktop on macOS.
- Open workspace:
/Users/santhanakrishnan/Documents/Coding/workweaver. - Try to submit any cloud task from composer.
- 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=cloud2026-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 ChatGPTcodex 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(bundle760) - 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/worktreesfor 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.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗