Skip to content

同步上游 agy-cli 0.1.160(视频补丁改为转换到上游媒体输入) - #24

Merged
ifccod merged 5 commits into
mainfrom
sync/0.1.160
Nov 28, 2026
Merged

ifccod merged 5 commits into
mainfrom
sync/0.1.160

Conversation

@ifccod

@ifccod ifccod commented Nov 28, 2026

Copy link
Copy Markdown
Owner

合并上游 agy-cli 0.1.153 → 0.1.160,取代 #22、#23。

上游

  • 0.1.155 自带视频/音频输入(base64 video/audio 块 → 会话 attachments/,view_file,不加 --add-dir)
  • 0.1.156 空 properties 对象补 additionalProperties: true
  • 0.1.157 agy ≥1.5.13 静默重试裸 429 时立刻结束本轮
  • 0.1.158 客户端丢掉的工具步在原会话取消,不再整段重放
  • 0.1.159 / 0.1.160 OpenCode 2 模型列表、搜索无来源措辞

冲突和补丁

  • agentDefinition tools 行、#spawn 的 --add-dir:用上游。
  • 409 分支:用上游 keepDroppedStep 段,held 仍取 heldFor(并行通道)。
  • keepDroppedStep 里 pool.get(ctx.convKey) → pool.get(proc.convKey):通道进程按自己的键存,不改的话在通道上永远走不到。
  • 视频补丁重写成转换层:image_url 里的视频(data:video/… 或 http(s) 链接)和链接形式的 video 块 → 上游的 base64 video 块。删掉 read_file、--add-dir media、读完删文件。链接下载缓存一小时。
  • Denied ending 的 agent 说明只在带媒体的会话里出现,改说 view_file。

测试

  • fork/video-selfcheck.mjs ok;fork/patch-e2e.mjs 16/16,新视频用例在 AGY_BRIDGE_VIDEO=0 时失败。
  • 上游 bun test:失败项和上游快照相同(catalog、re2、usage、“config names the provider”、“a read longer than magpie waits”)。
  • 本机真机(Magpie 0.1.4315,agy 1.5.19,gemini-4-hydrogen):base64 视频答对文字/底色/人声,公网链接描述正确,追问一轮 200,内网链接 400,纯文本 flash 200。

🤖 Generated with Claude Code

@ifccod
ifccod merged commit 2fde638 into main Nov 28, 2026
1 check passed
@ifccod
ifccod deleted the sync/0.1.160 branch November 28, 2026 14:50
This was referenced Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant