Repository navigation
fix(minimax-bot): 委派任务的文本在受理前洗掉标记 - #187
Open
Apageoflove wants to merge 1 commit into
Open
Apageoflove wants to merge 1 commit into
Apageoflove wants to merge 1 commit into
Conversation
Collaborator
|
谢谢这次 minimax-bot 的委派文本清洗。#162 合入后,现头 冲突在 请把这个分支 rebase 到当前 main,不要把 main merge 进工作分支。新头需要重新审查,不能沿用此前对该头的能合结论。 |
This was referenced Dec 1, 2026
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.
委派出去的活,其文本会进到接手的那个 Bot 的提示词里,而这段文本是哪个 Bot 写的。里面如果有协议标记,它后面的话就读起来像插件自己写的。
标记在别处都洗过 —— 依赖报告、后台助手的报告、群里的消息,走的都是同一个中和函数。唯独任务的文本这条路没过。实测:
</system-reminder>前后的话原样进了 Chief 的提示词。这条路径跨的是 Bot 到 Bot 的信任边界:任何 Bot 都能用
message_bot给任何别的 Bot 派活,主 Bot 也在内,resolveBot只查存不存在。所以这不是「一个 Bot 在自己地盘上写给自己看」,是别人写的东西进了别人的提示词。改的是派发时那一处:文本在受理前中和,所以存进状态里的也是干净的,重启不会把标记带回来。标记旁边的字照旧留着,跟其它拼法一样。
没改的是指纹:它算在
jobs上,而jobs现在就是洗过的文本 —— 中和是幂等的,同一个输入还是同一个任务,同一个request_id还是找得到它。测试加了两条,走真实 Engine:一条让一个 Bot 在自己的活回合里派给另一个 Bot,断言接手的那个 Bot 的提示词里没有宿主块和上下文块、但标记旁边的话还在;另一条断言存进状态的批次里没有标记。第二条在未改的 main 上是红的 —— 那边的状态里存的是带标记的原文。全量 440 条过。
版本号 0.7.43。0.7.40 在 #162,0.7.41 在 #184,0.7.42 在 #172,按这个顺序合。
验证范围:只有 Node 22 上的测试是实测的。真实 Host 和 Electron 我没跑过 —— 这一层是仅个人判断。另外这条只证明了标记进了提示词,没有证明目标 Bot 一定照着那些指令做。
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.