Codex Desktop does not persist Git authentication and repeatedly prompts to reconnect
What version of the Codex App are you using?
26.623.12021
What subscription do you have?
Pro
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Codex Desktop keeps repeatedly showing the prompt to connect with Git.
Even after I successfully authenticate using any of the available methods, the prompt appears again after a few seconds.
I have tried connecting using:
- Browser sign-in
- Token
- Device code
Each method appears to complete successfully, and Codex shows that the connection was successful:
<img width="565" height="251" alt="Image" src="https://github.com/user-attachments/assets/536a52b8-ec75-458f-81b8-cf43b45b9f15" />
However, Codex does not seem to persist the authentication state. After around 5 to 10 seconds, the Git connection prompt appears again:
<img width="416" height="360" alt="Image" src="https://github.com/user-attachments/assets/17c2f9fb-af33-4cee-8ba6-a2eeb5dfc149" />
The popup also cannot be minimized or dismissed permanently, so it interrupts normal use of the app.
What steps can reproduce the bug?
- Open Codex Desktop on Windows.
- Open a workspace that requires Git connection.
- Click to connect using browser sign-in, token, or device code.
- Complete the authentication flow successfully.
- Codex shows that the connection was successful.
- Return to Codex.
- Wait around 5 to 10 seconds.
- The same Git connection prompt appears again.
What is the expected behavior?
Codex should remember that Git authentication was completed successfully.
After connecting once, the Git connection prompt should not appear again unless the authentication actually fails, expires, or is manually disconnected.
What is the actual behavior?
Codex says the authentication was successful, but then prompts me to connect with Git again later.
Before reinstalling Codex and the workspace, this happened every 5 to 10 seconds.
After reinstalling Codex and recreating the workspace, the prompt still appears, but less frequently, around every 1 to 5 minutes.
This repeats continuously and interrupts normal use of the desktop app.
Additional information
Restarting Codex did not fix the issue.
Restarting the computer did not fix the issue.
I also tried reinstalling the Codex Desktop app and reinstalling or recreating the workspace.
After doing that, the behavior changed, but the issue was not fixed. Instead of appearing every 5 to 10 seconds, the Git connection prompt now appears roughly every 1 to 5 minutes.
So reinstalling Codex and the workspace only seems to reduce the frequency temporarily. It does not permanently resolve the issue.
This suggests that Codex may still be failing to persist, read, or validate the Git authentication state for the workspace, even though the authentication flow reports success.
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Was fixed in latest update
I'm working in the latest release of Ubuntu on the latest Codex and it's not fixed. It won't keep a gh auth and is a barrier to working in Codex.
Same experience here on MacOS Desktop Codex and Ubuntu CLI Codex. Authentication expires too soon (can happen multiple times in one session) and kills the workflow and user experience.