Repository navigation
fix(minimax): 避免 ACP 长任务被累计输出限额中断 - #3552
Merged
deepcoldy merged 7 commits intoNov 18, 2026
Merged
Conversation
Co-authored-by: codex
lijason1121
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
November 18, 2026 01:53
Co-authored-by: codex
Co-authored-by: codex
Co-authored-by: codex
Co-authored-by: codex
Co-authored-by: codex
Co-Authored-By: Claude Code <[email protected]>
Owner
|
感谢贡献,已合并 🎉 这个 PR 解决了 MiniMax Code 长任务被累计输出限额中断、以及超长回答无法送达飞书两个实际问题,ACP 帧/回答分级限额、分块控制通道、reply.md 附件和 outbox 衔接的设计与测试都比较扎实。 评审过程中修复了一个合前阻断:分块 final 标记原先只携带 turnId、不携带 dispatchAttempt,在 durable replay(同一回合重试、dispatchAttempt 递增)时,旧回合的迟到帧可能误结算新回合。修复后已把重试身份从输入帧到 final 标记全链路打通并补齐回归。 一个非阻断的后续改进建议(不影响本次合入):worker 侧三处 最终以维护者审阅为准。 |
|
@lijason1121 @deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。 这次运行覆盖 7a7307e…697de2f8e(10 个提交),同批合入的还有 #3540 #3556 #3530 #3558 #3563 #3561 #3562 #3560 #3564,失败不一定由本 PR 引起。
|
This was referenced Nov 18, 2026
|
🚀 Released in v3.59.20 |
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.
MiniMax ACP 长任务以前把所有日志和事件累计计入 8MB,即使最终回答很短也会被中断。另一个丢回答的位置在 worker:合法的大回答经过 JSON 和 base64 编码可能超过单个控制帧容量。
回归覆盖同轮两条大回答切换、中文和 emoji 每个字节切点、非法首帧后的同批 final、失败回合之后的正常交付。撤销计数重置、按片段解码、退回单控制帧、忽略同步中止、仅清除失败事务或截短附件字节,分别会触发对应测试断言。
验证环境为 Linux,飞书接口使用受控替身。大模型账号及线上飞书客户端未参与验收。
开启本地地址隐藏时,大附件在独立子进程中清洗。按起点查找 URL 的开销随链接数线性增长;同一投递的重试复用已有清洗字节和上传结果。测试覆盖多 MB 链接文本、策略变化、真实 worker 发送函数经进程 IPC 交付恰好 8,000,000 字节的中文与 NUL,以及错误回合的日志与结算。
附件清洗子进程超时 120 秒后会被终止,回到既有重试和失败反馈。日志保留阶段、退出码和信号。开启地址隐藏的文本可能因替换标签而增长,文件服务拒收的情况仍依照投递失败策略结算。
346f891 的本地完整检查通过,Node 54,625 项通过、172 项跳过;Bun 的 2,377 个测试文件通过,另有 429 个使用 Vitest 模块机制的文件由 Node 检查。
43ef5e3 仅调整两处测试。8MB 上传断言逐字节比较正文、单独校验文件名和类型,Codex 取消测试等待终态和中断回执都送达,原有超时保持不变。两处已在仓库支持的运行时定向验证。
43ef5e3 的本地完整门禁通过。GitHub CI 全部 15 项检查通过。