github / github/copilot-cli

Execution failed: 421 Misdirected Request listing models

Open
#4,868 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

Describe the bug

Hello, sorry for resuming the issue #173 , but today:

GitHub Copilot CLI 1.0.85.
Run 'copilot update' to check for updates.

Free copilot plan, i try to do /model and i get the issue:
Error loading model list: Error: 421 "Misdirected Request\n" (Request ID: ....)

Then i tried /model auto and that worked:
Model changed from claude-sonnet-5 (medium) to Auto for this session

And now i cant go back to my selected model, doing /model claude-sonnet-5 gives:
Unable to load available models list

Is this a bug or something expected related to free plan?

Affected version

GitHub Copilot CLI 1.0.85.

Steps to reproduce the behavior
  1. Resumed an old session, using a free plan
  2. type /model
  3. See the 421 error
Expected behavior

I expect to see the list of models when typing /model and to get a "model changed" confirmation when typing /model claude-sonnet-5

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure in GitHub Copilot CLI 1.0.85 with a free plan by resuming a session and running /model, then compare it with /model auto and /model claude-sonnet-5. Trace the model-list request handling and the 421 response; the issue is done when listing models and selecting claude-sonnet-5 both succeed with confirmation.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.