github / github/copilot-sdk

Replay catalog omits the image capacity required by saved histories

未关闭 适合新手
#2,628 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug testing
主要语言
Java
星标
10.5k
派生
1.5k
平均合并
1 天 14 小时
30 天内合并 PR
129

描述

## 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_

贡献指南

打开贡献指南

调研方向

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

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

评估

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

把新 issue 发到你的邮箱

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