Skip to content

Using images (like for testing UX changes) often results in the CLI getting into a broken state #4075

Closed

Description

@keylimesoda

Describe the bug

  1. Create a UX application with Claud Code CLI
  2. Request changes to the UX
  3. Ask it to use screenshots to self-validate if the code changes

Eventually you'll start seeing multiple errors on each request like:
"Images and/or native document attachments were removed from the request due to size constraints. Please use smaller image or document files."

I'm guessing it's the large image files sitting in context. not sure how

Affected version

GitHub Copilot CLI 1.0.70-0

Steps to reproduce the behavior

  1. Create a UX application with Claud Code CLI
  2. Request changes to the UX
  3. Ask it to use screenshots to self-validate if the code changes

Eventually you'll start seeing multiple errors on each request like:
"Images and/or native document attachments were removed from the request due to size constraints. Please use smaller image or document files."

Expected behavior

CLI should manage image context aggrressively, using compression, compaction, etc before showing error message.

Additional context

No response

Activity

  1. added theissue type on Jul 9, 2026
  2. added
    area:context-memoryContext window, memory, compaction, checkpoints, and instruction loading
    and removed on Jul 10, 2026
  3. copilot-cli-bot commented on Oct 23, 2026

    @copilot-cli-bot

    This appears to be resolved as of GitHub Copilot CLI v1.0.103. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.

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:context-memoryContext window, memory, compaction, checkpoints, and instruction loading

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions