Codex Desktop macOS crash: git worker OOM after branch-diff git add scans home directory
What version of the Codex App are you using (From “About Codex” dialog)?
Observed in local macOS crash reports:
26.602.40724build3593- Also reproduced earlier the same day on
26.602.30954build3575
What subscription do you have?
ChatGPT account; exact plan not included in this public report.
What platform is your computer?
- macOS
26.0.1build25A362 - 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, signalSIGABRT - Termination:
Abort trap: 6 - Faulting thread:
git - Top frames include:
__pthread_killpthread_killabortnode::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:
- Open Codex Desktop on macOS.
- Use a thread where the visible workspace is an empty/greenfield directory.
- Codex attempts branch/diff stats.
- Desktop log shows
git add -Awithcwd=/Users/<user>rather than the workspace path. - Codex crashes with the
SIGABRT/node::OOMErrorHandlersignature 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.ipsCodex-2026-06-05-223515.ipsCodex-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
SIGABRTcrash tied to local state/cache - openai/codex#24598: general desktop crash/stability report
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗