Codex Desktop macOS crash: git worker OOM after branch-diff git add scans home directory

Open 💬 1 comment Opened Jun 5, 2026 by chilu18

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

Observed in local macOS crash reports:

  • 26.602.40724 build 3593
  • Also reproduced earlier the same day on 26.602.30954 build 3575

What subscription do you have?

ChatGPT account; exact plan not included in this public report.

What platform is your computer?

  • macOS 26.0.1 build 25A362
  • Apple Silicon / arm64
  • Model from crash report: MacBookPro17,1
  • Bundle: com.openai.codex

What issue are you seeing?

Codex Desktop repeatedly crashes on macOS. The crash reports all have the same signature:

  • Exception: EXC_CRASH, signal SIGABRT
  • Termination: Abort trap: 6
  • Faulting thread: git
  • Top frames include:
  • __pthread_kill
  • pthread_kill
  • abort
  • node::OOMErrorHandler(char const*, v8::OOMDetails const&)
  • v8::internal::OptimizingCompileTaskExecutor::RunCompilationJob(...)

Local Codex desktop logs show a likely trigger shortly before the crash: Codex runs git branch/diff logic from the user's home directory instead of the active workspace.

Sanitized log excerpts:

warning [electron-message-handler] worker_rpc_response_error ...
error: open(".boto"): Permission denied
error: unable to index file '.boto'
fatal: adding files failed
warning [git] git.command.complete ...
command="git -c core.hooksPath=/dev/null -c core.fsmonitor= add -A"
cwd=/Users/<user>
requestKind=branch-diff-stats
source=review_model
exitCode=128

The same log contains many macOS privacy/TCC warnings for protected folders under ~/Library, ~/Pictures, etc., plus a very large file list under caches. This looks like Codex is accidentally asking git to index the whole home directory for branch diff stats, producing massive stderr/output and then hitting a Node/V8 OOM abort inside the git worker.

Steps to reproduce

I do not have a minimal deterministic repro yet, but the local sequence was:

  1. Open Codex Desktop on macOS.
  2. Use a thread where the visible workspace is an empty/greenfield directory.
  3. Codex attempts branch/diff stats.
  4. Desktop log shows git add -A with cwd=/Users/<user> rather than the workspace path.
  5. Codex crashes with the SIGABRT / node::OOMErrorHandler signature above.

Expected behavior

Codex should never run git add -A or branch diff/stat collection from the user home directory when the active workspace is a project directory. It should bound output and memory use for git worker failures, and it should degrade gracefully instead of aborting the desktop app.

Additional information

Three crash reports were generated locally on June 5, 2026:

  • Codex-2026-06-05-145356.ips
  • Codex-2026-06-05-223515.ips
  • Codex-2026-06-05-230956.ips

I am intentionally not attaching raw logs publicly because they include local file paths and file names from the user's home directory. The key signature is repeated across all three reports and the desktop log points to branch-diff-stats invoking git add -A in cwd=/Users/<user>.

Related but not identical reports found before filing:

  • openai/codex#21663: macOS SIGABRT crash tied to local state/cache
  • openai/codex#24598: general desktop crash/stability report

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗