Codex Desktop local changes indicator stays stale after successful push
What version of the Codex App are you using?
26.616.51431 (build 4212)
What subscription do you have?
ChatGPT Plus
What platform is your computer?
macOS 26.6 (Build 25G5028f), Darwin 25.6.0, x86_64
What issue are you seeing?
The Codex Desktop app's visual indicator for local repository changes did not refresh to zero after a successful commit and push.
In the same Codex session, an agent committed all open changes on main and then pushed successfully to origin/main. The underlying git state was clean and synchronized afterwards, but the Codex app UI still showed local changes as if there were pending changes. The visual counter only updated to 0 after switching away to another context and then switching back.
This makes the repository state shown by the app look stale or incorrect after an agent-driven Git workflow.
What steps can reproduce the bug?
- Open a local Git repository in Codex Desktop on macOS.
- Ensure the UI is showing local changes.
- Have Codex commit all open changes.
- Have Codex push the current branch to the remote.
- Verify in the terminal that the push succeeded and the local branch is in sync with the remote.
- In this observed case,
git status --short --branchreturned## main...origin/mainwith no pending changes.
- Observe the Codex Desktop visual local-changes indicator.
- Switch to another Codex context/thread/workspace and then switch back.
What is the expected behavior?
After a successful push leaves the worktree clean and the local branch synchronized with the remote, the visual local-changes indicator should refresh automatically and show 0 without requiring a context switch or manual UI refresh.
What actually happened?
The UI continued to show a non-zero local-changes indicator after the successful push, even though Git reported a clean synchronized state. The indicator corrected itself only after switching to another context and then back.
Additional information
Observed repository state after push:
$ git push origin main
To https://github.com/inspiredorange/CouchControl.git
8581f76..89abdba main -> main
$ git status --short --branch
## main...origin/main
Workaround: switching to another context and back causes the UI indicator to refresh to 0.
This looks like a stale UI state / repository-status refresh issue after agent-initiated git push, not a Git failure.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗