Skip to content

Copilot CLI enters on recoverable state after : Execution failed CAPI Error #2848

@AlaRaies

Description

@AlaRaies

Describe the bug

Subscription : GitHub Copilot Business subscription.
While running an active CLI session, I accidentally submitted a prompt that included an image. The CLI correctly returned an error indicating that image-based prompts are not supported. However, after this exception occurred, the CLI entered an unrecoverable state.
From that point onward, any subsequent input—whether a text-only prompt or the execution of any CLI command—results in the same exception being thrown, even though no image is included in the prompt. Restarting the prompt flow within the same session does not resolve the issue.
I also believe this same behavior occurs when using models that do not have vision capabilities at all, not only when vision is disabled by organizational policy.
Exception observed : Execution failed: CAPI Error ...

Attachments:
An image and a video demonstrating the steps to reproduce the issue are attached.

UnrecoverableState.zip

Affected version

GitHub Copilot CLI 1.0.32.

Steps to reproduce the behavior

  • The issue occurs consistently.
  • I reproduced the problem in a separate, fresh session with the same results.

Expected behavior

After encountering an error related to an unsupported image prompt, the CLI should recover gracefully and continue to operate normally for supported, text-only prompts and commands.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:modelsModel selection, availability, switching, rate limits, and model-specific behaviorarea:toolsBuilt-in tools: file editing, shell, search, LSP, git, and tool call behavior

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions