Codex Desktop branch selector changes Git checkout but UI label remains stale
What version of the Codex App are you using (From “About Codex” dialog)?
26.623.61825
What subscription do you have?
gpt plus
What platform is your computer?
Microsoft Windows NT 10.0.26220.0 x64
What issue are you seeing?
In Codex Desktop, changing the branch from the thread chat UI successfully changes the underlying Git checkout, but the UI branch label remains on the previous branch.
Example:
I changed the thread branch from:
feature/delete_share_link
to:
main
Git correctly changed to main, but the Codex UI still displayed feature/delete_share_link.
Evidence after selecting main in the Codex branch UI:
git status --short --branch
git rev-parse --short HEAD
git branch --show-current
git log -1 --oneline --decorate
Output:
## main...origin/main
d99ee11
main
d99ee11 (HEAD -> main, origin/main, origin/HEAD) Merge branch 'codex/remove-space-add-existing-member'
But the Codex thread UI still showed the old branch name: feature/delete_share_link
From inspecting the local Codex session metadata, it also recorded a stale branch name with the main commit:
branch -> feature/delete_share_link
commit -> d99ee11
So the Git checkout is correct, but the UI/session branch label is stale and misleading.
What steps can reproduce the bug?
What Steps Can Reproduce The Bug?
1. Open Codex Desktop on Windows with WSL enabled.
2. Open a local Git repo thread attached to a WSL project:
`/home/tim/zu-pu-website`
3. In the thread chat UI, use the branch selector to switch from one branch to another.
Example:
- from `feature/delete_share_link`
- to `main`
4. Verify the actual branch in terminal:
```bash
git status --short --branch
git branch --show-current
git rev-parse --short HEAD
Observe that Git changed to the selected branch.
Observe that the Codex UI branch label still shows the previous branch.
What is the expected behavior?
After changing branches in the Codex thread UI, the branch label shown in the thread UI should update to match the actual Git checkout.
For example, after selecting `main`, the UI should show:
```text
main
and match:
git status --short --branch
### Additional information
**Additional Information**
```markdown
This appears related to stale branch indicator behavior, similar to:
https://github.com/openai/codex/issues/17683
I also cleared Codex cache/temp directories and restarted/rechecked, but the issue persisted. The branch selector changes Git correctly, so this does not appear to be a Git checkout failure. It appears to be a Codex Desktop UI/session metadata refresh issue.
Environment details:
- Codex Desktop version: `26.623.61825`
- Subscription: ChatGPT Plus
- Platform: `Microsoft Windows NT 10.0.26220.0 x64`
- WSL distro: Ubuntu 22.04
Workaround:
Trust terminal output instead of the Codex UI branch label:
```bash
git status --short --branch