Skip to content

YubiKey / hardware security key login loop in Codex Desktop for Windows #40888

Open

Description

@torba-lab

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

26.820.60940

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

After enabling Advanced Account Security, I can successfully authenticate with my YubiKey when Codex starts. But as soon as I open a project or chat, Codex asks me to authenticate again. After successful YubiKey login it returns to the project, and opening the chat immediately triggers the login flow again - endless loop.

The hardware-key authentication itself succeeds; the Windows Codex Desktop session just doesn’t stay authenticated.

This currently makes Codex Desktop practically unusable for users who are required to use physical security keys.

What steps can reproduce the bug?

  1. Use Codex Desktop on Windows with an OpenAI account that has Advanced Account Security enabled and requires authentication with a physical FIDO2 hardware security key (YubiKey).

  2. Launch Codex Desktop.

  3. Complete the login flow using the YubiKey. Authentication succeeds and Codex opens normally.

  4. Select an existing project.

  5. Open any existing chat/thread inside that project.

  6. Codex immediately starts the login flow again.

  7. Authenticate again successfully with the same YubiKey.

  8. Codex returns to the project view.

  9. Open the chat/thread again.

  10. The login flow starts again.

This repeats indefinitely.

What is the expected behavior?

Expected behavior:
After successfully authenticating with the YubiKey, Codex Desktop should preserve the authenticated session and allow projects and chats to open normally.

Actual behavior:
YubiKey authentication succeeds, but opening a project/chat causes Codex Desktop to request authentication again, resulting in an endless authentication loop.

Additional information

No response

Activity

  1. added
    app
    on Aug 26, 2026
  2. added
    bug
    windows-os
    auth
    session
    on Aug 26, 2026
  3. torba-lab commented on Aug 27, 2026

    @torba-lab
    Author

    Fixed in Codex 26.820.71523.

  4. chelebyy commented on Aug 28, 2026

    @chelebyy

    I’m seeing a very similar Windows Codex Desktop issue while using Advanced Account Security with a FEITIAN ePass K9 Plus physical FIDO2 key. Authentication succeeds, but Desktop later loses session/auth state. I also see intermittent conversation creation timeouts, no rollout found for thread id, and a newer acknowledgement failure where Codex says task creation/submission has not yet been acknowledged. The same account works normally in Codex CLI on the same Windows machine. My main tracking issue is openai/codex #40704.

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

    appauthbugsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions