openai / openai/codex

Codex Desktop repeatedly reports expired GitHub authentication while gh is authenticated

Open
#38,100 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app auth bug
Dominant language
Rust
Stars
125k
Forks
19.5k
PR merge metrics
PR metrics pending

Description

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

26.803.61601

What subscription do you have?

Pro 5x

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

Codex Desktop repeatedly reports that GitHub authentication has expired and asks me to sign in again.

I have completed the authentication flow multiple times (approximately seven times), but the same prompt keeps returning. The problem occurs while using Codex Desktop with local Git worktrees.

What steps can reproduce the bug?
  1. Open Codex Desktop and work in a local Git repository or worktree.
  2. When Codex Desktop displays a GitHub authentication-expired prompt, complete the sign-in flow.
  3. Continue using Codex Desktop.
  4. The same expired-authentication prompt appears again.
  5. Repeat the sign-in flow several times; the prompt still returns.
What is the expected behavior?

After GitHub authentication is completed successfully, Codex Desktop should retain or refresh the authentication session.

GitHub authentication should not unexpectedly expire or repeatedly require the user to sign in during normal use.

Additional information

No response

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 repeated GitHub authentication prompt in Codex Desktop while using a local Git repository or worktree, then trace where the completed sign-in session is retained or refreshed. Done means authentication remains valid during normal use and the prompt does not recur after a successful sign-in.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.