codex - 💡(How to fix) Fix Codex macOS desktop app infinite-loads after login [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19960Fetched 2026-04-29 06:24:40
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×2commented ×1cross-referenced ×1

Codex macOS desktop app infinite-loads after login.

Local reset did not fix it.

config.toml has no workspace, cwd, root, or path setting.

codex-dev.db only has:

  • inbox_items
  • automations
  • automation_runs

Logs show successful account/config/model/plugin/thread calls with errorCode=null.

But the worker repeatedly logs:

[git-origin-and-roots] Failed to resolve origin for workspace
errorMessage="ENOENT: path does not exist: ~"

Error Message

[git-origin-and-roots] Failed to resolve origin for workspace errorMessage="ENOENT: path does not exist: ~" errorName=Error errorStack="Error: ENOENT: path does not exist: ~ at LY (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/worker.js:109:9104) at ZZ.getStableMetadata.promise (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/worker.js:126:6186) at ZZ.getStableMetadata (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/worker.js:61:14309) at ZZ.getRepoRepository (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/worker.js:126:5410) at ZZ.getWorktreeRepository (/Applications/Codex.app/Contents/Resources/app.asar/.v

Root Cause

Codex macOS desktop app infinite-loads after login.

Local reset did not fix it.

config.toml has no workspace, cwd, root, or path setting.

codex-dev.db only has:

  • inbox_items
  • automations
  • automation_runs

Logs show successful account/config/model/plugin/thread calls with errorCode=null.

But the worker repeatedly logs:

[git-origin-and-roots] Failed to resolve origin for workspace
errorMessage="ENOENT: path does not exist: ~"

Code Example

[git-origin-and-roots] Failed to resolve origin for workspace
errorMessage="ENOENT: path does not exist: ~"

---

[git-origin-and-roots] Failed to resolve origin for workspace
errorMessage="ENOENT: path does not exist: ~"
errorName=Error
errorStack="Error: ENOENT: path does not exist: ~
    at LY (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/worker.js:109:9104)
    at ZZ.getStableMetadata.promise (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/worker.js:126:6186)
    at ZZ.getStableMetadata (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/worker.js:61:14309)
    at ZZ.getRepoRepository (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/worker.js:126:5410)
    at ZZ.getWorktreeRepository (/Applications/Codex.app/Contents/Resources/app.asar/.v
RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

26.422.62136 (2180)

What subscription do you have?

Plus

What platform is your computer?

Darwin 25.4.0 arm64 arm

What issue are you seeing?

Summary

Codex macOS desktop app infinite-loads after login.

Local reset did not fix it.

config.toml has no workspace, cwd, root, or path setting.

codex-dev.db only has:

  • inbox_items
  • automations
  • automation_runs

Logs show successful account/config/model/plugin/thread calls with errorCode=null.

But the worker repeatedly logs:

[git-origin-and-roots] Failed to resolve origin for workspace
errorMessage="ENOENT: path does not exist: ~"

Troubleshooting already attempted

  • Full reinstall
  • Cleared caches
  • Removed ~/.codex
  • Removed ~/Library/Application Support/Codex
  • Removed ~/Library/Preferences/com.openai.codex.plist
  • Checked ~/.codex/config.toml; no workspace/cwd/root/path entry
  • Checked ~/.codex/sqlite/codex-dev.db; only contains inbox_items, automations, automation_runs

Relevant log excerpt

[git-origin-and-roots] Failed to resolve origin for workspace
errorMessage="ENOENT: path does not exist: ~"
errorName=Error
errorStack="Error: ENOENT: path does not exist: ~
    at LY (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/worker.js:109:9104)
    at ZZ.getStableMetadata.promise (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/worker.js:126:6186)
    at ZZ.getStableMetadata (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/worker.js:61:14309)
    at ZZ.getRepoRepository (/Applications/Codex.app/Contents/Resources/app.asar/.vite/build/worker.js:126:5410)
    at ZZ.getWorktreeRepository (/Applications/Codex.app/Contents/Resources/app.asar/.v

What steps can reproduce the bug?

  1. Install Codex desktop app on macOS.
  2. Launch the app.
  3. Log in successfully.
  4. App remains stuck on infinite loading.
  5. Logs continue to show successful app-server calls, but also ENOENT: path does not exist: ~.

What is the expected behavior?

The Codex desktop app should finish loading and show the workspace/thread UI, or show a recoverable error if a workspace path is invalid.

Additional information

The app stays in infinite loading after login.

codex-relevant-logs-raw.txt

extent analysis

TL;DR

The issue is likely caused by a missing or invalid workspace path, and setting a valid workspace or root path in the config.toml file may resolve the infinite loading issue.

Guidance

  • Verify that the config.toml file has a valid workspace or root path setting, as the error message suggests that the path ~ does not exist.
  • Check the logs for any other error messages that may indicate a specific issue with the workspace or path configuration.
  • Try setting a valid workspace path in the config.toml file, such as workspace = "/path/to/valid/workspace", and restart the app to see if it resolves the issue.
  • If the issue persists, try resetting the app to its default configuration by removing the config.toml file and restarting the app.

Example

No code snippet is provided as it is not clearly supported by the issue, but an example of a valid config.toml file with a workspace path setting could be:

workspace = "/path/to/valid/workspace"

Notes

The issue may be specific to the macOS platform, and the solution may not apply to other platforms. Additionally, the codex-dev.db file only contains limited data, which may indicate a larger issue with the app's configuration or data storage.

Recommendation

Apply workaround: Set a valid workspace or root path in the config.toml file, as this is the most likely cause of the issue and is a simple configuration change to test.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex macOS desktop app infinite-loads after login [1 comments, 2 participants]