Windows Desktop: Git/GitHub UI binding lost after crash/state restore; git origins and diffs work locally but no Git surface appears

Resolved 💬 3 comments Opened Jul 5, 2026 by AkioKoneko Closed Jul 12, 2026

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-projects is missing/null
  • active-remote-project-id is missing/null
  • remote-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?

  1. Use Codex Desktop on Windows with multiple local git repositories/projects.
  2. Experience an abrupt reboot/BSOD/power loss.
  3. Reopen Codex Desktop.
  4. Observe that project/sidebar/environment state may be missing or partially reset.
  5. Restore projects/environments from local .codex-global-state.json backups.
  6. Open a restored project that has a valid git remote/upstream.
  7. Create a real local change in the repo.
  8. Verify from CLI that git status and git diff show the change.
  9. Observe that Codex Desktop still does not show the Git/GitHub/diff UI surface.

Local verification:

  • git status works.
  • git diff works.
  • 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-projects
  • remote-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-roots
  • local-projects
  • project-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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗