codex - 💡(How to fix) Fix Codex CLI 0.124.0 misreports `gh auth status` as invalid inside Codex session [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19262Fetched 2026-04-24 10:39:51
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×4unlabeled ×2commented ×1
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

0.124.0

What subscription do you have?

Unknown

Which model were you using?

gpt-5.4 xhigh

What platform is your computer?

Darwin 25.3.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

tmux (TERM=tmux-256color)

What issue are you seeing?

Inside Codex CLI 0.124.0, running gh auth status incorrectly reported that the active GITHUB_TOKEN and the saved skshim-reco account were invalid.

On the same machine and same repo, running gh auth status in a normal terminal session succeeded.

The failing Codex output was effectively:

  • Failed to log in to github.com using token (GITHUB_TOKEN)
  • The token in GITHUB_TOKEN is invalid.
  • the saved default account was also reported as invalid

After downgrading to 0.122.0, gh auth status succeeded again.

What steps can reproduce the bug?

  1. Start Codex CLI 0.124.0.
  2. Use Full Access mode.
  3. Run gh auth status inside the Codex session.
  4. Observe that Codex reports the active GITHUB_TOKEN and saved account as invalid.
  5. Run gh auth status in a normal terminal on the same machine and repo.
  6. Observe that GitHub auth succeeds there.
  7. Downgrade Codex CLI to 0.122.0 and rerun gh auth status.
  8. Observe that it succeeds again.

Uploaded thread: 019dbd61-a8a7-78d0-8444-322d2b838a42

What is the expected behavior?

gh auth status inside Codex should match the normal terminal result on the same machine and report valid authentication.

Additional information

  • The active GitHub account was skshim-reco.
  • The GITHUB_TOKEN value was unchanged between the successful and failing checks.
  • This looked like a Codex runtime/environment regression rather than an actually invalid GitHub token.

extent analysis

TL;DR

Downgrade Codex CLI to version 0.122.0 to resolve the authentication issue with gh auth status.

Guidance

  • The issue seems to be specific to Codex CLI version 0.124.0, as downgrading to 0.122.0 resolves the problem.
  • Verify that the GITHUB_TOKEN value remains unchanged between checks to ensure it's not an issue with the token itself.
  • Run gh auth status in a normal terminal session to confirm that the authentication works outside of Codex CLI.
  • If the issue persists, try resetting the Codex CLI environment or checking for any configuration differences between the normal terminal and Codex sessions.

Notes

The cause of the issue appears to be a regression in Codex CLI version 0.124.0, but the exact root cause is unclear. Downgrading to a previous version may not be a permanent solution, and further investigation may be needed to resolve the issue fully.

Recommendation

Apply workaround: Downgrade to version 0.122.0, as it has been confirmed to resolve the authentication issue with gh auth status.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex CLI 0.124.0 misreports `gh auth status` as invalid inside Codex session [1 comments, 2 participants]