Repository navigation
fix(minimax-bot): 合并批次的重试成功后清掉该批全部输入的投递标记 - #194
Open
Apageoflove wants to merge 1 commit into
Open
Apageoflove wants to merge 1 commit into
Apageoflove wants to merge 1 commit into
Conversation
MyPrototypeWhat
requested changes
Dec 2, 2026
MyPrototypeWhat
left a comment
Collaborator
There was a problem hiding this comment.
谢谢这次 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 加上成功结束;正文把「其余才在数组里」写错了。
请更新这个分支,我们再看新头。
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.
两条消息一起发出去就是同一批,它们一起失败,而回复是同时回答这两条的。回复上第一条记在
sourceMessageId里,其余记在sourceMessageIds里 —— 但重试成功时只清了第一条。剩下的那些还留着失败那次写下的判定。而一个
uncertain的输入会把这条聊天后面所有消息都挡住。所以重试明明成功了,用户还是发不出去东西:回复在那儿,聊天卡着。
实测两条输入合并成一批:
改的是
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 我没跑过 —— 这一层是仅个人判断。
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.