Skip to content

fix(minimax-bot): 合并批次的重试成功后清掉该批全部输入的投递标记 - #194

Open
Apageoflove wants to merge 1 commit into
MiniMax-AI:mainfrom
Apageoflove:fix/merged-retry-delivery
Open

Apageoflove wants to merge 1 commit into
MiniMax-AI:mainfrom
Apageoflove:fix/merged-retry-delivery

Conversation

@Apageoflove

@Apageoflove Apageoflove commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

两条消息一起发出去就是同一批,它们一起失败,而回复是同时回答这两条的。回复上第一条记在 sourceMessageId 里,其余记在 sourceMessageIds 里 —— 但重试成功时只清了第一条。

剩下的那些还留着失败那次写下的判定。而一个 uncertain 的输入会把这条聊天后面所有消息都挡住。

所以重试明明成功了,用户还是发不出去东西:回复在那儿,聊天卡着。

实测两条输入合并成一批:

before retry: { first: 'uncertain', second: 'uncertain' }
after successful retry: { first: 'delivered', second: 'uncertain' }

follow-up: { first: 'delivered', second: 'uncertain', third: 'held', hostCalls: 3 }

改的是 retryMessage():清掉这一批里所有仍是 failed 或 uncertain 的输入。带着更晚判定的那条(更新的补充、一次取消)仍然压过这次重试,不动。

测试加了一条:合并批次的重试成功后,两条输入都是 delivered。这条在未改的 main 上是红的。全量 441 条过。

版本号 0.7.47。当前 main 是 0.7.40,前面还有 #184(0.7.41)、#172(0.7.42)、#187(0.7.43)、#188(0.7.44)、#189(0.7.45)、#190(0.7.46),按这个顺序合。

验证范围:只有 Node 22 上的测试是实测的。真实 Host 和 Electron 我没跑过 —— 这一层是仅个人判断。


Start Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@MyPrototypeWhat MyPrototypeWhat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

谢谢这次 minimax-bot 的合并批次重试清理。现头 2aff1e8d 还不能合。

retryMessage() 的门闪是 result.accepted,turn.started 之后它就是 true。回复已经是 error(agent_unavailable 或 AGENT_OUTCOME_UNKNOWN)时,这个头仍会把该批里还是 failed / uncertain 的输入全部写成 delivered,后续消息不再被挡住。父提交在同样失败下只改第一条。请不要只凭 accepted 清掉整批失败标记。

另外,README 的 ## 0.7.47 还插在 0.7.39 和 0.7.40 之间,请挪到 0.7.40 之后。

另外两条是备注,不是这次不能合的理由:新测试只钉住 failed 加上成功结束;正文把「其余才在数组里」写错了。

请更新这个分支,我们再看新头。

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.

2 participants