github / github/copilot-cli

copilot-cli keeps asking to login again

Open
#254 9 comments 5 reactions 0 assignees View on GitHub
more-info-needed unable-to-reproduce
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the bug

copilot-cli worked fine until today.

Today copilot-cli began to ask me to login again even though I was already logged in with GitHub credentials using GitHub Business account for many days.

"/login" would log me in, but after Ctrl-C the new session would ask me to log in again. This happened many times.

The long running parallel session was present. This was a new circumstance today. Maybe this was the cause.

Then I logged in using "gh", and copilot-cli began to pick up login from gh and this solved the problem.

Version: 0.0.330
Rocky Linux

### Affected version

_No response_

### Steps to reproduce the behavior

_No response_

### Expected behavior

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.