Windows Desktop: Git/GitHub UI binding lost after crash/state restore; git origins and diffs work locally but no Git surface appears
What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.623.101652 • Released 3 июл. 2026 г.
What subscription do you have?
Pro
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
After an abrupt reboot/BSOD, Codex Desktop lost several local UI state layers. I was able to recover projects and environments from local backups, but the Git/GitHub UI binding still does not work.
The app no longer shows the Git/GitHub/diff surface for any project. However, local git works and Codex Desktop logs show that git origins are discovered.
Evidence:
- Local projects/environments are present again.
- Local
git status,git diff, branches, upstreams, and remotes work. - A smoke test created a real diff in one repo; CLI saw it, but Codex Desktop UI still did not show any Git/diff surface.
- Desktop logs show:
[git-origins] worker-complete dirCount=9 originCount=9[git-repo-watcher] Starting git repo watcher- The UI hover can show repo/branch for chats, but the actual Git/GitHub surface is missing.
- Global state has no remote binding:
remote-projectsis missing/nullactive-remote-project-idis missing/nullremote-project-connection-backfill-completed: true
I need a supported way to rebuild/reset the GitHub/project/remote binding without deleting all projects or losing chats.
What steps can reproduce the bug?
- Use Codex Desktop on Windows with multiple local git repositories/projects.
- Experience an abrupt reboot/BSOD/power loss.
- Reopen Codex Desktop.
- Observe that project/sidebar/environment state may be missing or partially reset.
- Restore projects/environments from local
.codex-global-state.jsonbackups. - Open a restored project that has a valid git remote/upstream.
- Create a real local change in the repo.
- Verify from CLI that
git statusandgit diffshow the change. - Observe that Codex Desktop still does not show the Git/GitHub/diff UI surface.
Local verification:
git statusworks.git diffworks.- GitHub connector can list the account/repositories.
- Codex Desktop logs show
originCount=9.
What is the expected behavior?
Codex Desktop should keep or safely recover the Git/GitHub UI binding after a crash/state restore.
If local git origins are detected and diffs exist, the app should show the Git/diff surface for the project.
If a state reset is needed, there should be a supported recovery action or documented cache/state key to rebuild:
- GitHub/project binding
- remote project binding
- Git/diff UI surface
remote-projectsremote-project-connection-backfill-completed
Additional information
App-server version seen in logs: 0.142.5
After recovery, I found that Codex Desktop appears to have multiple project state layers:
electron-saved-workspace-rootslocal-projectsproject-writable-roots
Keeping both electron-saved-workspace-roots and local-projects populated caused duplicate projects in the sidebar. Using the legacy workspace roots only restored projects/environments without duplicates, but Git/GitHub UI binding is still missing.
I can provide sanitized logs or a feedback session ID if needed.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗