Repository navigation
fix(quoted): 让视频附件经会话工具传输并保留视频类型 - #4091
Open
Han-wangyu wants to merge 2 commits into
Open
Han-wangyu wants to merge 2 commits into
Han-wangyu wants to merge 2 commits into
Conversation
Han-wangyu
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
November 30, 2026 16:50
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3126
在沙盒里用
botmux quoted读取含视频的引用时,宿主会把合法的video判为未知附件,导致整条消息失败。图片、正文以及同批其他消息也随之不可用。宿主现在按普通文件传输视频字节。引用 JSON 保留
type: "video"、文件名与原有 MIME,内置 relay 和 Riff 只按占位符替换本地路径。线上附件包继续使用既有的image | file类型,数量、累计字节预算与本地文件检查沿用已有实现。验证
bun run build通过。相邻 Vitest 套件 148 项通过、1 项跳过,Bun 下的 Remote Runner 与 Riff 用例 85 项通过。bun run test test/remote-runner-session-tool.test.ts test/riff-host-tools.test.ts test/sandbox-relay-session-tool.test.ts test/relay-attachment-short-write.test.ts复跑。c7a693af在独立目录合并,Git 自动合并成功,构建和上述 4 个文件的测试均通过。在合并结果里协商host_file后,另核对了视频文件的长度、SHA-256、占位符与媒体类型。