Replay catalog omits the image capacity required by saved histories

未关闭 适合新手
#2,628 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
java
领域
api, testing

调研方向

从 replay proxy 的 GET /models 响应开始,检查其 fake catalog 如何声明 vision 限制。运行指定的 SessionConfigE2ETests 和 SessionE2ETests attachment 与 vision 场景,然后确认 catalog 宣布支持两张图像的容量,同时保存的历史记录、严格的 replay matching 和原始 assertions 均保持不变。

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

描述

bug testing

Problem

The replay proxy's GET /models response advertises vision support but does not declare capabilities.limits.vision.max_prompt_images. Saved image conversations can require two image-bearing messages: an attached blob and a subsequent image-view result.

When a runtime applies a one-image fallback for the omitted capability, these histories no longer match the strict replay snapshots. The proxy reports a missing cached response rather than completing the attachment or model-vision scenario.

Affected scenarios include both SessionConfigE2ETests.Should_Accept_Blob_Attachments and SessionE2ETests.Should_Accept_Blob_Attachments, plus SessionConfigE2ETests.Vision_Disabled_Then_Enabled_Via_SetModel.

Expected behavior

The fake catalog should explicitly support the image capacity required by its recorded conversations. Keep the original attachment and vision assertions, saved histories, and strict replay matching intact.

An explicit two-image capacity resolves these scenarios. A harness-only fix and HTTP endpoint regression coverage are prepared; no product change or retry is needed.

Generated by Copilot

主要语言
Java
星标
10.5k
派生
1.5k
平均合并
1 天 12 小时
30 天内合并 PR
133

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/copilot-sdk 的其他 Issue

查看 github/copilot-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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