github / github/copilot-cli

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

未关闭
#4,075 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:context-memory
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the bug

1. Create a UX application with Claud Code CLI
2. Request changes to the UX
2. 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
2. 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_

贡献指南

打开贡献指南

调研方向

Start by reproducing the issue in GitHub Copilot CLI 1.0.70-0 using repeated UX changes and screenshots. Then trace how image attachments are retained and how the size-constraint error is surfaced. Done means continued requests no longer leave the CLI reporting repeated image-size errors after it has managed the accumulated image context.

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
cli
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。