I get an error that I'm not authed everytime I try to run a copilot command. If I unalias the 1password integration (unalias gh), and go through the normal logic process it works.
Relevant log output
> gh auth status
github.com
✓ Logged in to github.com account blimmer (GITHUB_TOKEN)
- Active account: true
- Git operations protocol: ssh
- Token: ghp_************************************
- Token scopes: 'copilot', 'gist', 'notifications', 'project', 'read:org', 'repo', 'user'
> gh copilot suggest hello
✗ Error: No valid OAuth token detected
To get started with GitHub Copilot in the CLI, please run: gh auth login --web -h github.com to authenticate via web browser.
If I go through the `gh auth login --web -h github.com` process, it succeeds, but I keep getting the "No valid OAuth token detected" error.
Platform or tool
GitHub
Desired or expected behavior
Copilot CLI is now a public beta and exposed through the
gh
CLI. However, it doesn't work when I'm using theop
shell integration.I followed the instructions to add the extension and enable it here: https://docs.github.com/en/copilot/github-copilot-in-the-cli/using-github-copilot-in-the-cli#installing-copilot-in-the-cli
Current behavior
I get an error that I'm not authed everytime I try to run a copilot command. If I unalias the 1password integration (
unalias gh
), and go through the normal logic process it works.Relevant log output
op CLI version
2.13.1