Skip to content

/logout help text should specify that it only affects OAuth login sessions, and not gh/PAT logins #356

@potatoqualitee

Description

@potatoqualitee

Describe the bug

Hello, the /logout switch does not persist as expected.

● Connected to GitHub MCP Server

 ● Logged in with gh as user: potatoqualitee

 ● You have been logged out successfully.

 ● Disconnected from GitHub MCP Server

 Please use /login to sign in to use Copilot
 C:\github\aitools[⎇ main*]                                       gpt-5 (1x)

────────────────────────────────────────────────────────────────────────────
 >  Enter @ to mention files or / for commands

────────────────────────────────────────────────────────────────────────────
 Ctrl+c Exit · Ctrl+r Expand recent

Then I quit and reenter by typing copilot and I'm immediately brought back to being logged in

[2m56s] C:\github\aitools❯ copilot
 Welcome to GitHub Copilot CLI
 Version 0.0.344 · Commit c87f222

 Copilot can write, test and debug code right from your terminal. Describe a
 task to get started or enter ? for help. Copilot uses AI, check for
 mistakes.

 ● Connected to GitHub MCP Server

 ● Logged in with gh as user: potatoqualitee

 C:\github\aitools[⎇ main*]                                       gpt-5 (1x)
 ────────────────────────────────────────────────────────────────────────────
 >  Enter @ to mention files or / for commands
 ────────────────────────────────────────────────────────────────────────────
 Ctrl+c Exit · Ctrl+r Expand recent

Affected version

Version 0.0.344 · Commit c87f222

Steps to reproduce the behavior

copilot
(immediately get prompted for login via the web)
exit
copilot
/logout
exit
copoilot

Expected behavior

Logout persists to next session and not just immediate then you get logged back in

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions