agent-Specialization/奇奇怪怪的bug/2026-02-25_132148_minimax_block_misalignment.md

25 lines
933 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 诡异Bug记录
- 诡异程度:★★★★☆
- 发现时间2026-02-25 13:21:48
- 场景/模块:前端聊天流式渲染(块与输出内容错位)
- 关联模型minimax-m2.5
## 描述
使用 minimax 模型时出现“块与输出内容错位”的严重前端问题,表现为流式阶段内容与对应块不对齐。
## Debug 过程
1. 回顾近期针对 minimax 的堆叠修复(延迟创建 text action
2. 复现后确认错位仅发生在该修复逻辑开启时。
3. 临时回退到方案1text_start 直接创建 text action + 堆叠时忽略空文本 action进行验证。
## 找到的问题
延迟创建 text action 的策略会在部分 minimax 流式节奏下打乱 action 与 chunk 的对应关系,导致内容落入错误块中。
## 修复方案
改回方案1
- text_start 直接创建 text action
- 堆叠渲染时忽略空白 text action。
结果:错位问题消失。