Skip to content

Error loading model list: Error: Not authenticated #3596

Description

@baynezy

Describe the bug

When I resume a specific session I am unable to list the models available with the /model command. I this error: ✗ Error loading model list: Error: Not authenticated.

If I start a new session then I can do this no problem.

Affected version

v1.0.56

Steps to reproduce the behavior

  1. Type /resume command
  2. Pick the session I want to resume
  3. Type /model
  4. See error

Expected behavior

  1. Type /resume command
  2. Pick the session I want to resume
  3. Type /model
  4. See list of models to choose from

Additional context

  • Windows 11
  • PowerShell 7.5.5

Activity

  1. added theissue type on May 31, 2026
  2. added
    area:sessionsSession management, resume, history, session picker, and session state
    area:authenticationLogin, OAuth, device auth, token management, and keychain integration
    area:modelsModel selection, availability, switching, rate limits, and model-specific behavior
    on May 31, 2026
  3. FMC-Mauro commented on Jun 1, 2026

    @FMC-Mauro

    As a workaround, you can /logout, restart your terminal, and /login again. It worked for me.

  4. niander commented on Jun 5, 2026

    @niander

    This seems to affect PowerShell only. While /login again works. It doesn't persist at all. No need to restart terminal.

  5. oroztocil commented on Jun 9, 2026

    @oroztocil

    /logout is not possible if you are authenticated via gh. Doing gh auth refresh does not solve the problem with not being able to list/switch models in a resumed session.

  6. jduartedj commented on Jun 10, 2026

    @jduartedj

    I'm getting this error while SSH into a linux machine....

  7. 0Camus0 commented on Jun 10, 2026

    @0Camus0

    Still happens in GitHub Copilot CLI 1.0.61 using PS. /logout / login does not work.

    The gh auth refresh does not work either, not for /resume

    Without doing /resume I can list the models.

    Edit: /restart seems to work.

  8. laeubi commented on Jun 22, 2026

    @laeubi

    Sam problem here and very annoying... especially as restarting seem to even consume AI credits according to the statusbar output 👎

  9. mu88 commented on Jun 25, 2026

    @mu88

    still an issue, this is super annoying, totally breaks my usual work habits, and costs tokens 👎🏻👎🏻👎🏻

  10. szabta89 commented on Jul 1, 2026

    @szabta89

    This should be fixed in the latest version of copilot cli now. Can you please check? I tried to repro the issue in a DevBox machine, but I was not able to with 1.0.67 (while I was able to repro with e.g. 1.0.61).

  11. self-assigned this
    on Jul 1, 2026
  12. szabta89 commented on Jul 6, 2026

    @szabta89

    Please reopen with further details if the issue is still present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:authenticationLogin, OAuth, device auth, token management, and keychain integrationarea:modelsModel selection, availability, switching, rate limits, and model-specific behaviorarea:sessionsSession management, resume, history, session picker, and session state

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions