Skip to content

Codex Stuck in Login Loop Windows 11 #40036

Closed

Description

@CrispyOrangeSlices

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.818.32112

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Hi, as of an update this week, I am no longer able to use the Codex application on Windows. If I attempt to create a new chat or open an existing one, it logs me out. I have attached a video to a google drive link. This happens even after uninstalling+ purging codex directories. It happens with a Native Windows or WSL2 backend.

😢 pls help me.

https://drive.google.com/file/d/11dEaSHdJMzXDDeW-saJn4QvAPZOHEins/view

What steps can reproduce the bug?

Feedback ID: no-active-thread-01a026cd-3636-70c3-9f59-c08885c736c2

What is the expected behavior?

I would like the product to work, friendship is optional I guess

Additional information

No response

Activity

  1. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    authIssues related to authentication and accounts
    on Aug 22, 2026
  2. CrispyOrangeSlices commented on Aug 22, 2026

    @CrispyOrangeSlices
    Author

    hi mr @github-actions , I think this may be a duplicate issue but those issues use lots of big words and I just want codex to be working

  3. TheHarryDoyle commented on Aug 22, 2026

    @TheHarryDoyle

    Having same problem
    I click on an old chat or a new chat and just goes in an endless loop, updated right after a chat finished and then it relaunched and have not been able to do anything in codex since this morning

    Image
  4. TheHarryDoyle commented on Aug 22, 2026

    @TheHarryDoyle

    Rolling back lets me use it
    chatgpty made it
    $ErrorActionPreference = "Stop"

    $pkg = Get-AppxPackage -Name OpenAI.Codex
    Write-Host "Current version: $($pkg.Version)"

    $msix = "$env:USERPROFILE\Downloads\ChatGPT-26.810.7004.0-x64.msix"

    Invoke-WebRequest -Uri "https://persistent.oaistatic.com/codex-app-prod/releases/26.810.7004.0/ChatGPT-x64.msix"
    -OutFile $msix

    Get-Process ChatGPT,Codex,codex -ErrorAction SilentlyContinue |
    Stop-Process -Force

    Add-AppxPackage -Path $msix
    -ForceApplicationShutdown `
    -ForceUpdateFromAnyVersion

    Get-AppxPackage -Name OpenAI.Codex |
    Select-Object Name,Version,Status

    Start-Process explorer.exe `
    "shell:AppsFolder\OpenAI.Codex_2p2nqsd0c76g0!App"

  5. nousernameavailable1 commented on Aug 22, 2026

    @nousernameavailable1

    same issue here, on windows chatgpt app, stuck in that endless logout loop when trying to view any chat, ive found a workaround for now, connecting my chatgpt app on my phone via remote connection lets me use the app and code, but its ridiculously inefficient and annoying

    Feedback ID: no-active-thread-01a0290e-20a1-7770-8c4d-5e4659ecb970

  6. Makefishr commented on Aug 23, 2026

    @Makefishr

    回滚后我就可以使用它了 ,chatgpty 将其设置为 $ErrorActionPreference = "Stop"

    $pkg = Get-AppxPackage -Name OpenAI.Codex Write-Host "当前版本:$($pkg.Version)"

    $msix = "$env:USERPROFILE\Downloads\ChatGPT-26.810.7004.0-x64.msix"

    Invoke-WebRequest -Uri "https://persistent.oaistatic.com/codex-app-prod/releases/26.810.7004.0/ChatGPT-x64.msix" -OutFile $msix

    Get-Process ChatGPT,Codex,codex -ErrorAction SilentlyContinue | Stop-Process -Force

    Add-AppxPackage -Path $msix -ForceApplicationShutdown -ForceUpdateFromAnyVersion

    Get-AppxPackage -Name OpenAI.Codex | Select-Object Name,Version,Status

    启动进程 explorer.exe ` "shell:AppsFolder\OpenAI.Codex_2p2nqsd0c76g0!App"

    The issue has been resolved using your method; thank you.

  7. CrispyOrangeSlices commented on Aug 23, 2026

    @CrispyOrangeSlices
    Author

    related to #39162

  8. gutnikgleb commented on Aug 24, 2026

    @gutnikgleb

    same problem

  9. Normalitee0os commented on Aug 24, 2026

    @Normalitee0os

    Same problem here

  10. benmorris44 commented on Aug 24, 2026

    @benmorris44

    Same issue here, have to use 26.810.7004.0 until it is fixed

  11. RoyaNaserpour commented on Aug 25, 2026

    @RoyaNaserpour

    I am experiencing the same login/logout loop on Windows.

    Environment:

    • Desktop app version: 26.818.61809
    • Windows version/build: Windows 11 , 25H2 (OS build 26200.9168)
    • Subscription: ChatGPT Plus
    • Advanced Account Security: OFF
    • Authentication method: email
    • ChatGPT web: works normally

    Behavior:
    The browser authentication completes successfully and the Codex desktop app briefly shows me as signed in. After approximately a few seconds or after selecting an existing chat ,it automatically returns to the sign-in page. Relaunching the app signs me in automatically, but it logs out again shortly afterward.

    Troubleshooting already performed:

    • Completely closed all ChatGPT/Codex processes
    • Renamed %USERPROFILE%\.codex\auth.json and completed a fresh login
    • Reset the Windows application
    • Uninstalled and downloaded/reinstalled the application
    • Confirmed Advanced Account Security is disabled

    None of these steps resolved the issue. This appears to be the same desktop authentication regression, but in my case it occurs with Advanced Account Security disabled.

  12. Normalitee0os commented on Aug 25, 2026

    @Normalitee0os

    Solved it temporarily by shifting to the beta build

  13. Avendim commented on Aug 27, 2026

    @Avendim

    I can confirm that this issue is still reproducible on Windows 11 with ChatGPT Plus in app version 26.820.71523.

    I have experienced the same authentication loop across the following versions:

    • 26.818.41509
    • 26.818.41705
    • 26.818.61809
    • 26.820.60940
    • 26.820.71523

    The browser authentication flow succeeds and the desktop app initially displays my account, local projects, and conversations. However, opening any existing Codex conversation or attempting to create a new one immediately returns the app to the “Continue to sign in” screen.

    Windows Repair, system restarts, and all available application updates have not resolved the issue. I have not reset the application or removed the .codex directory because preserving the local session history is critically important.

    This has completely blocked access to my local Codex projects and conversation history for almost a week. The affected local conversations are not accessible from ChatGPT web.

    Could the maintainers please confirm whether this authentication regression has been triaged and whether there is a target version for the fix? A safe workaround that preserves local sessions would also be greatly appreciated.

  14. RoyaNaserpour commented on Aug 28, 2026

    @RoyaNaserpour

    I can't believe in the era of the AI , a top AI company couldn't be able to fix this annoying and disrupting issue for almost a week! I lost my access to local Codex conversations due to this problem. please give a higher priority to find a solution.

  15. CrispyOrangeSlices commented on Aug 28, 2026

    @CrispyOrangeSlices
    Author

    I have noticed the issue is fixed on Version 26.825.32147 - I am closing this issue because I only care if it works for me, sorry everyone else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appauthIssues related to authentication and accountsbugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions