[App/Linux] Review → Committed hangs when project root is opened through a symlink

Open 💬 1 comment Opened Aug 17, 2026 by bestrauc
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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

26.803.81509

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Linux 6.8.0-136-generic x86_64 x86_64

What issue are you seeing?

In Codex Desktop, Review → Committed remains on Loading commits… indefinitely for a Codex-managed worktree when the saved project root uses a symlinked path while Git resolves the shared repository metadata through the canonical path. Local Git commands, including git log, work normally.

The desktop log repeats this every five seconds (paths anonymized):

[git-init-watcher] Failed to watch workspace root for git init
cwd=/home/user/.codex/worktrees/abcd/repo/../../../../home/user/projects/repo
errorCode=ENOENT
errorMessage="ENOENT: no such file or directory, watch '/home/user/.codex/worktrees/abcd/repo/../../../../home/user/projects/repo'"

That constructed path normalizes to the nonexistent /home/user/home/user/projects/repo.

What steps can reproduce the bug?

  1. Put a Git repository on another filesystem or mount:

``bash
mkdir -p /mnt/storage/user/projects
git clone <any-repository> /mnt/storage/user/projects/repo
ln -s /mnt/storage/user/projects /home/user/projects
``

  1. Add the project to Codex Desktop using the symlinked path /home/user/projects/repo.
  2. Start a task using a Codex-managed worktree.
  3. Create at least one commit in that worktree.
  4. Open Review, select Committed, and observe that its submenu stays at Loading commits….
  5. Inspect the desktop logs and observe the repeated git-init-watcher ENOENT above.

In the managed worktree, the relationship looks like:

worktree:       /home/user/.codex/worktrees/abcd/repo
saved project:  /home/user/projects/repo
real project:   /mnt/storage/user/projects/repo
git common dir: /mnt/storage/user/projects/repo/.git

Workaround: Change the saved project root to the canonical /mnt/storage/user/projects/repo path and restart Codex Desktop. The Committed menu then loads normally and the watcher error stops.

What is the expected behavior?

Codex Desktop should treat the symlinked project path and its canonical path as the same Git repository. Review → Committed should load the commit list, and repository discovery should not construct or repeatedly watch an invalid path.

At minimum, the project root should be canonicalized before deriving paths relative to the managed worktree, or an absolute saved root should not be appended as a relative path.

Additional information

  • Git: git version 2.34.1
  • Local Git access worked throughout; this was not a GitHub CLI or sandbox-permission failure.
  • The canonical-path workaround fixing both the UI and log loop suggests a project-path normalization mismatch.
  • Possibly related: #15448 (symlink/canonical workspace identity mismatch) and #32695 (permanent git-init-watcher failure retried every five seconds).

View original on GitHub ↗

1 Comment

github-actions[bot] contributor · 10 days ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #38694

Powered by Codex Action