openai / openai/codex

Login session repeatedly expires

Open
#40,242 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app auth bug windows-os
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

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

26.818.5229.0

What subscription do you have?

plus

What platform is your computer?

Windows10

What issue are you seeing?

Windows 10 19045,ChatGPT/Codex桌面端版本26.818.5229.0。
网页登录正常,桌面端登录成功后数分钟自动退出。
日志持续出现:
refresh_token_invalidated

codex-doctor.txt
doctor-after-logout.json

Failed to refresh token: 401 Unauthorized

已清理LocalAppData、删除auth.json、改用Windows keyring、
卸载/停用Codex++、CC Switch和全局Codex CLI,问题仍可复现。

What steps can reproduce the bug?

登陆后点击历史对话

What is the expected behavior?

No response

Additional information

no-active-thread-01a02ee8-b1d4-79c3-86b1-6e7cf186cfe6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the logout on Windows 10 after signing in and opening a historical conversation. Review the attached codex-doctor.txt and doctor-after-logout.json alongside the repeated refresh_token_invalidated and 401 Unauthorized messages; auth.json and the Windows keyring are also relevant context. Done means the desktop session remains signed in instead of expiring after a few minutes.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
authentication, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.