Skip to content

Codex App UI freezes: worker crashes, massive git/worktree errors, and concurrent orphaned app-server processes #11090

Description

@sizumita

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 ... ENOENT
    • git-origin-and-roots Failed to resolve origin
    • Worktree has a branch checked out
  • Temporary concurrent codex app-server processes (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: 1905
    • git-origin-and-roots Failed to resolve origin: 1905
    • Worktree has a branch checked out: 308
    • Worker exited { code: 1 }: 8

Additional process-level observation:

  • Multiple codex app-server processes with different start times were alive simultaneously.
  • All observed with PPID=1 (orphaned), suggesting cleanup did not complete after parent exit.
  • Multiple app-server processes 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?

  1. Run Codex App on macOS with apps = true, collab = true, shell_snapshot = true.
  2. Use multiple repositories/projects (including paths that may become unavailable over time).
  3. Continue regular usage until git/worktree sync errors start repeating.
  4. During that period, observe worker restarts/exits and occasional agent loop died unexpectedly.
  5. In some sessions, codex app-server from previous generations remains alive while a new one starts.
  6. 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-server should 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 --porcelain
    • git worktree prune --dry-run
    • No stale worktree registrations were found.

Suspected root-cause chain (hypothesis):

  1. Parent process crash/restart sometimes leaves orphaned app-server.
  2. New startup spawns another app-server, causing temporary multi-instance execution.
  3. Rollout/state writes and worker management may contend.
  4. Continuous git/worktree exception churn amplifies instability and contributes to UI freeze.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions