Skip to content

Failed to get response from the AI model; retried 5 times; Last error: Unknown error #1627

Open

Description

@doughgle

Describe the bug

On 2026-02-23, Copilot CLI repeatedly failed during normal chat turns with automatic retries, burning premium requests without returning usable output.

I observed two failure modes in the same incident window:

  • Failed to get response from the AI model; retried 5 times; Last error: Unknown error
  • CAPIError: 400 400 Bad Request (with Request-ID), also retried repeatedly
    Example failure:
Image

The issue persisted after exiting Copilot CLI and resuming the session with /resume.
Switching models did not resolve it (Claude Sonnet 4.5, Claude Haiku 4.5, Gemini 3 Pro Preview).
This issue exhausted my premium requests today due to repeated automatic retries and re-sends of context during failure loops.

Affected version

GitHub Copilot CLI 0.0.414

Steps to reproduce the behavior

  1. Start Copilot CLI in an existing session with prior context.
  2. Run normal prompts, then continue with retry/continue style prompts after a failure.
  3. Observe repeated retry loops and eventual query failure.
  4. Switch model (Sonnet -> Haiku -> Gemini) and retry.
  5. Exit Copilot CLI, then resume session using /resume.
  6. Observe failures continue, including repeated 400 Bad Request on later attempts.

Expected behavior

Copilot CLI should either:

  • recover and return a response after transient backend errors, or
  • fail fast with a clear actionable reason and avoid repeated paid retries for the same invalid/unserviceable request path.

Switching model or resuming session should not keep replaying a failing pattern indefinitely.

Additional context

  • OS: Linux
  • Shell: bash
  • Incident date: 2026-02-23
  • Models attempted: Claude Sonnet 4.5, Claude Haiku 4.5, Gemini 3 Pro Preview
  • Session behavior: persisted across exit + /resume

Observed errors:

  • Failed to get response from the AI model; retried 5 times; Last error: Unknown error
  • CAPIError: 400 400 Bad Request

Request-IDs captured from logs:

  • 9BE4:71AB1:11F1B88:1569739:699C1D4F
  • 9BE4:71AB1:11F45BA:156C643:699C1D53
  • 9BE4:71AB1:11F757D:156FB2A:699C1D5C
  • 9BE4:71AB1:11FB120:1573D46:699C1D68
  • 9BE4:71AB1:12008C3:1579E68:699C1D75
  • 9BE4:71AB1:120678E:1580847:699C1D88
  • 9BE4:71AB1:1212A42:158E05B:699C1DC5
  • 9BE4:71AB1:12153DB:1590E66:699C1DC8
  • 9BE4:71AB1:12181A3:1594130:699C1DD2
  • 9BE4:71AB1:121B746:1597C52:699C1DDC
  • 9BE4:71AB1:121F978:159C676:699C1DE7
  • 9BE4:71AB1:122550A:15A2C11:699C1DF6

Activity

  1. dereklegenzoff commented on Feb 24, 2026

    @dereklegenzoff
    Contributor

    We shipped a fix in version 0.0.416 that should prevent the Response was interrupted due to a server error errors from happening frequently in autopilot mode.

    Regarding the 400s, it looks like those errors are predominantly caused by the chrome-devtool-emulate MCP tool. We will look into this issue but in the interim, the best bet might be to disable that MCP tool temporarily.

  2. dereklegenzoff commented on Feb 24, 2026

    @dereklegenzoff
    Contributor

    Thanks for providing the request IDs!

  3. doughgle commented on Feb 24, 2026

    @doughgle
    Author

    We shipped a fix in version 0.0.416 that should prevent the Response was interrupted due to a server error errors from happening frequently in autopilot mode.

    Regarding the 400s, it looks like those errors are predominantly caused by the chrome-devtool-emulate MCP tool. We will look into this issue but in the interim, the best bet might be to disable that MCP tool temporarily.

    @dereklegenzoff thank you. I'll try those suggestions. If it helps, Copilot chat worked smoothly at the same time, same model, same mcp tools.

  4. borcherspm commented on Feb 25, 2026

    @borcherspm

    I have this too still with 0.0.418. it just started showing up, unfortunately I dont know which version i was on before I updated today.

    Execution failed: Error: Failed to get response from the AI model; retried 5 times (total retry wait time: 6.110395777066669 seconds) Last error: Unknown error
    

    I do not have the chrome-devtool-emulate tool.

     MCP Servers
    
     ❯ ✓ MCP_DOCKER         local  docker
       ✓ playwright         local  npx
    
     Built-in:
       ✓ github-mcp-server  http   https://api.enterprise.githubcopilot.com/mcp/readonly
    

    MCP_DOCKER is using the docker desktop mcp toolkit and it has context7 and confluence/jira mcp server.

  5. added
    area:enterpriseGitHub Enterprise (GHE/GHES) support, org policies, and enterprise settings
    on Apr 6, 2026
  6. added
    area:modelsModel selection, availability, switching, rate limits, and model-specific behavior
    on Apr 6, 2026
  7. patniko commented on Oct 26, 2026

    @patniko
    Collaborator

    Thanks for the report. We've shipped fixes in this area since this was filed (most recently in Copilot CLI v0.0.422), 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:enterpriseGitHub Enterprise (GHE/GHES) support, org policies, and enterprise settingsarea:modelsModel selection, availability, switching, rate limits, and model-specific behaviormore-info-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions