Codex Desktop Windows: Git controls missing when thread git metadata is not backfilled for a valid local repo
What version of the Codex App are you using?
Codex Desktop 26.623.3763.0 on Windows.
What issue are you seeing?
For an existing local workspace thread, the right-side project/source panel does not show local Git controls such as local changes, branch state, commit, or push. The panel only shows the source/GitHub area.
The local repository itself is valid. Running Git from the same workspace directory succeeds and shows a clean branch tracking origin:
git status --short --branch
## main...origin/main
git rev-parse --show-toplevel
<workspace-root>
git remote -v
origin <github-remote-url> (fetch)
origin <github-remote-url> (push)
GitHub CLI is also installed, authenticated, and usable.
Additional diagnostic evidence
The local Codex state_5.sqlite threads table has Git metadata columns:
git_sha
git_branch
git_origin_url
For the affected current thread, the row has:
cwd = <workspace-root>
git_branch = main
git_sha = NULL
git_origin_url = NULL
So Codex Desktop appears to know the branch but has not backfilled the commit SHA or origin URL for the thread, even though Git can read them correctly from the same directory. The UI appears to hide commit/push controls when git_origin_url is missing.
Other threads in the same local Codex state database do have complete Git metadata, for example:
git_branch = main
git_sha = <sha>
git_origin_url = <github-remote-url>
This suggests a thread Git metadata refresh/backfill issue rather than a global Git or GitHub CLI installation problem.
What steps can reproduce the bug?
- Open an existing Codex Desktop thread whose cwd is, or later becomes, a valid local Git repository.
- Verify terminal Git commands can read branch, SHA, and origin from the same cwd.
- Open the right-side source/project panel.
- Observe that commit/push/local Git controls are missing.
- Inspect the thread row in
state_5.sqliteand observegit_origin_url/git_shaare empty despite a valid repo.
This may be more likely for long-running threads, or threads created before the repository was initialized or pushed, because the Git metadata does not appear to refresh later.
Expected behavior
Codex Desktop should refresh Git metadata for a thread when the cwd is a valid Git repository, especially after the thread is reopened or Codex Desktop is restarted. The UI should not permanently hide local Git controls just because git_origin_url was empty when the thread was first created.
Actual behavior
The thread remains stuck without commit/push controls even after the repository is valid, synced with origin, and Codex Desktop has been restarted.
Related issues
Possibly related but not identical:
- #17726
- #24484
- #29402
- #29911
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗