Windows app shows "Create git repository" for valid WSL worktrees and does not show branch in thread
Resolved 💬 3 comments Opened Mar 10, 2026 by p13i Closed Jul 2, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
Summary
In Codex Windows app, chat threads opened from WSL worktree paths sometimes show “Create git repository” under the submit box even though the folder is a valid Git repo. The branch indicator for that thread also does not reflect the actual branch (ra, rb, rc).
Environment
- App: Codex Windows app (Microsoft Store package
OpenAI.Codex) - Observed version:
26.305.950.0(from process path) - OS: Windows + WSL2 (Ubuntu)
- Workspace paths:
\\wsl.localhost\\Ubuntu\\www\\worktrees\\cs-ra\\wsl.localhost\\Ubuntu\\www\\worktrees\\cs-rb\\wsl.localhost\\Ubuntu\\www\\worktrees\\cs-rc- Date observed: March 9-10, 2026 (America/Los_Angeles)
Repro Steps
- Create or use multiple Git worktrees in WSL:
/www/worktrees/cs-raon branchra/www/worktrees/cs-rbon branchrb/www/worktrees/cs-rcon branchrc
- Open Codex Windows app and launch/open threads for those UNC paths (
\\wsl.localhost\\Ubuntu\\...). - In each thread, observe the UI under the submit box.
Actual Behavior
- UI shows “Create git repository” in threads for
cs-rbandcs-rc(sometimes also after reopeningcs-ra). - Branch is not shown correctly for affected threads.
- Looks like thread cwd/workspace binding is stale or unresolved in app state.
Expected Behavior
- Codex should detect existing Git repo for each workspace thread.
- Branch indicator should show the actual branch for that workspace (
ra,rb,rc). - Opening additional workspaces should not lose Git context.
Verification that repos are valid
From WSL shell:
git -C /www/worktrees/cs-rb rev-parse --is-inside-work-tree->truegit -C /www/worktrees/cs-rc rev-parse --is-inside-work-tree->truegit -C /www/worktrees/cs-rb branch --show-current->rbgit -C /www/worktrees/cs-rc branch --show-current->rc
Additional Notes
- Codex appears single-instance; launching with a new path may not always rebind active thread cwd.
- Full app restart sometimes helps, but stale threads can still show incorrect Git state.
- This seems specific to app thread state/workspace resolution, not Git setup.
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I have the same error and I just run
git initin cmd in my project directory. Then I get an git error - "git fatal detected dubious ownership in repository", when I fixed it and rungit initagain - Codex could find my repo andmasterbranch. Hope it helpsI think the root cause is https://github.com/openai/codex/issues/10347