Codex desktop app: "Stage all" fails, but single-file stage and terminal git add work
What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.318.11754 (1100)
What subscription do you have?
Plus
What platform is your computer?
_No response_
What issue are you seeing?
In the Codex desktop app on macOS, the Stage all action fails with a “Failed to stage” error. However, staging a single modified file works, and Git works normally from Terminal.
Environment
• App: Codex desktop app
• OS: macOS
• Device: MacBook Pro
Issue
When I click Stage all in Codex, the app shows “Failed to stage.”
If I stage one modified file individually, that works.
If I run Git commands in Terminal, staging and committing work normally.
Expected behavior
Clicking Stage all should stage all modified files in the repo.
Actual behavior
• Stage all fails in the Codex UI
• Single-file stage works
• Terminal Git commands work
• This makes it look like the failure is specific to Codex’s staging flow/UI, not Git itself
What I tested
• Deleted and reinstalled Codex
• Restarted one project from scratch
• Confirmed there was no .git/index.lock file
• Ran git add .gitignore successfully
• Ran git status successfully
• Ran git diff --cached --name-only successfully
• Ran git commit successfully
• Confirmed the repo can be committed from Terminal
• Checked disk space; storage does not appear critically low
Terminal evidence
Single-file staging works in Terminal:
git add .gitignore
git status
git diff --cached --name-only
Result:
• git status showed Changes to be committed
• git diff --cached --name-only showed .gitignore
Commit also worked in Terminal:
git commit -m "test commit"
!Image
!Image
!Image
!Image
!Image
!Image
!Image
!Image
!Image
Result:
• Commit succeeded
• Working tree became clean afterward
What steps can reproduce the bug?
Codex UI ISSUE
What is the expected behavior?
_No response_
Additional information
• Codex also showed a message like “Couldn’t generate a commit message” after staging failed, but that looked secondary to the main problem
• The repository itself appears healthy because Git works outside the Codex UI
• I also confirmed a separate push issue was caused by a placeholder remote URL, which was unrelated to the staging problem
Reproduction steps
- Open a repo in Codex desktop app
- Make one or more file changes
- Click Stage all
- Observe “Failed to stage”
- Stage one file manually and observe that it works
- Run git add . or git add <file> in Terminal and observe that Git stages successfully
Impact
This blocks using Codex’s built-in staging workflow and forces staging/commit operations to be done in Terminal instead.
Attachments
I have screenshots showing:
• the “Failed to stage” toast in Codex
• files remaining unstaged in the Codex UI
• successful git add, git status, and git commit behavior in Terminal
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗