Codex Desktop does not persist Git authentication and repeatedly prompts to reconnect

Resolved 💬 3 comments Opened Jun 24, 2026 by M9GLiquid Closed Jun 30, 2026

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?

  1. Open Codex Desktop on Windows.
  2. Open a workspace that requires Git connection.
  3. Click to connect using browser sign-in, token, or device code.
  4. Complete the authentication flow successfully.
  5. Codex shows that the connection was successful.
  6. Return to Codex.
  7. Wait around 5 to 10 seconds.
  8. 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.

View original on GitHub ↗

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