Codex App UI freezes: worker crashes, massive git/worktree errors, and concurrent orphaned app-server processes
Open 💬 6 comments Opened Feb 8, 2026 by sizumita
💡 Likely answer: A maintainer (miraclebakelaser, contributor)
responded on this thread — see the highlighted reply below.
What version of the Codex App are you using (From “About Codex” dialog)?
260206.1448 (565)
What subscription do you have?
Pro
What issue are you seeing?
The Codex App UI occasionally becomes unresponsive and stops accepting input.
Observed symptoms around freeze windows:
- Worker crashes:
Worker exited { code: 1 } - Agent loop failure:
agent loop died unexpectedly - Large volumes of git/worktree errors:
git-origins ... ENOENTgit-origin-and-roots Failed to resolve originWorktree has a branch checked out- Temporary concurrent
codex app-serverprocesses (older orphaned processes remain alive)
Date observed: 2026-02-08 (local logs, macOS)
Relevant log points:
agent loop died unexpectedly:log/codex-tui.log:106966(01:42:30)log/codex-tui.log:107280(12:04:39)- Same-day counts:
git-origins ... ENOENT: 1905git-origin-and-roots Failed to resolve origin: 1905Worktree has a branch checked out: 308Worker exited { code: 1 }: 8
Additional process-level observation:
- Multiple
codex app-serverprocesses with different start times were alive simultaneously. - All observed with
PPID=1(orphaned), suggesting cleanup did not complete after parent exit. - Multiple
app-serverprocesses were opening the same rollout JSONL at the same time.
Note:
- Most observable failures were in worker/app-server/git-worktree paths.
What steps can reproduce the bug?
- Run Codex App on macOS with
apps = true,collab = true,shell_snapshot = true. - Use multiple repositories/projects (including paths that may become unavailable over time).
- Continue regular usage until git/worktree sync errors start repeating.
- During that period, observe worker restarts/exits and occasional
agent loop died unexpectedly. - In some sessions,
codex app-serverfrom previous generations remains alive while a new one starts. - UI eventually becomes unresponsive.
Environment specifics from affected setup:
- Config file:
~/.codex/config.toml - Previously had non-existent project paths in config (later removed):
- Two stale local project paths (redacted)
What is the expected behavior?
- Codex App UI should remain responsive even if git/worktree discovery fails.
codex app-servershould be single-instance, and old instances should be reliably cleaned up on parent exit/restart.- Worker crashes should be isolated and should not lead to a UI freeze.
Additional information
Actions already taken:
- Removed non-existent project paths from
~/.codex/config.toml. - Checked repositories with:
git worktree list --porcelaingit worktree prune --dry-run- No stale worktree registrations were found.
Suspected root-cause chain (hypothesis):
- Parent process crash/restart sometimes leaves orphaned
app-server. - New startup spawns another
app-server, causing temporary multi-instance execution. - Rollout/state writes and worker management may contend.
- Continuous git/worktree exception churn amplifies instability and contributes to UI freeze.
7 Comments
Possibly related: https://github.com/openai/codex/issues/11000
We've made a lot of perf improvements over the past week. Are you still seeing these issues with the latest version?
Performance is dramatically better for me but I still get these orphaned processes that idle in Activity Monitor despite quitting Codex App.
<img width="446" height="246" alt="Image" src="https://github.com/user-attachments/assets/f3d67ea0-b903-4c18-a951-bb014417fc0e" />
I'm in the same situation. In my environment, the zsh process exists in isolation.
<img width="1582" height="1035" alt="Image" src="https://github.com/user-attachments/assets/270442dd-660f-4f1b-a796-e770bc5f995a" />
^ This too.
<img width="135" height="419" alt="Image" src="https://github.com/user-attachments/assets/577deec4-7a6c-41e3-a20c-ef946920f787" />
I can confirm orphaned children after quit on macOS
@miraclebakelaser and @sizumita i saw the same "closed the app, old processes still there" part. On my machine it was not only
app-serverorzsh. I had leftover MCP-side processes too.My environment
26.311.21342 (build 993)Darwin 25.3.0, Apple Silicon2.5 daysWhat quit cleaned and what it missed
When I used Cmd+Q on March 17, 2026, about
90Codex child processes died. But a smaller orphan set stayed alive underPID 1 / launchd:The dates on those leftovers matched older Codex sessions:
That last part is why this looks racey to me. It was not “all of one generation stayed” or “all died”. Most of the batch died on quit, but one sibling from the same family still escaped.
So i think there may be two bugs mixed together:
This feels close to the older orphan-after-exit reports like
#6201, but here i was seeing it from Codex.app on macOS.+1 — also reproducing the orphan
app-serversymptom on macOS, but without any of the other symptoms in this issue (no UI freeze, noagent loop died unexpectedly, no git/worktree errors, no worker crashes). May be a separate cleanup path worth isolating.Repro
codex app-server --listen ws://127.0.0.1:0)Observed
After a clean ⌘Q:
So the main UI is gone, the helpers are gone, but 14
codex app-serverchildren persist with PPID=1.Environment
Darwin 25.4.0 arm64)Workaround
Why I think it's a separate path
The OP attributes orphan accumulation to "parent process crash/restart" plus surrounding git/worktree churn. Here the parent exited normally via ⌘Q, no failure path was triggered (no
Worker exited, noagent loop died unexpectedly, nogit-origins ENOENT), and orphans still appeared. So there seems to be a general child-reaping bug on clean quit, independent of the crash/restart trigger documented above.