Skip to content

Codex cannot access gh #31017

Description

@Martin-Carlsson

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

newest

What subscription do you have?

pro

What platform is your computer?

mac

What issue are you seeing?

Codex keeps insisting that I am not logged in to gh (github cli), even though I am logged in.

This is what Codex chat sees:

github.com
  X Failed to log in to github.com account Martin-Carlsson (default)
  - Active account: true
  - The token in default is invalid.
  - To re-authenticate, run: gh auth login -h github.com
  - To forget about this account, run: gh auth logout -h github.com -u Martin-Carlsson

What the normal terminal sees:

➜  ~ gh auth status
github.com
  ✓ Logged in to github.com account Martin-Carlsson (keyring)
  - Active account: true
  - Git operations protocol: https
  - Token: gho_************************************
  - Token scopes: 'gist', 'read:org', 'repo', 'workflow'
➜  ~

What steps can reproduce the bug?

Any prompt to do a GitHub command, like: Create a PR

What is the expected behavior?

No response

Additional information

No response

Activity

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 working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions