Skip to content

copilot --continue exit code 1 when changing model #2524

Open

Description

@doggy8088

Describe the bug

I hope changing the model won’t break Copilot on the next launch. Currently, it exits with code 1.

Affected version

GitHub Copilot CLI 1.0.18.

Steps to reproduce the behavior

  1. Run copilot
  2. Enter hi
  3. exit copilot
  4. change to another model by edit ~/.copilot/config.json or change model in the copilot.
  5. Run copilot again.
  6. You can't enter any prompt.

Expected behavior

I expected Copilot CLI should handle everything for me. It should load context from the last session even using different model.

Additional context

No response

Activity

  1. added theissue type on Apr 5, 2026
  2. added
    area:modelsModel selection, availability, switching, rate limits, and model-specific behavior
    on Apr 6, 2026
  3. caarlos0 commented on May 4, 2026

    @caarlos0
    Member

    I believe this has been fixed, or at least, I was unable to reproduce it. Does it still happen on your end?

  4. doggy8088 commented on May 5, 2026

    @doggy8088
    Author

    @caarlos0 Because this problem only shows up occasionally, I’ll need to test it for a while before I can tell you if it’s truly fully fixed.

  5. patniko commented on Oct 26, 2026

    @patniko
    Collaborator

    Thanks for the report. We've shipped fixes in this area since this was filed, and we believe this may now be resolved. Could you retest on the latest release (Copilot CLI v1.0.103) and let us know whether you still see it? If we don't hear back in a couple of weeks, we may close this issue — you can always reopen it.

    Triaged as part of a Copilot SDK backlog review, with help from GitHub Copilot.

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

    area:modelsModel selection, availability, switching, rate limits, and model-specific behaviormore-info-needed

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions