Repository navigation
fix(minimax-bot): 群纪要的记录可见性、上下文标记防伪与面板一致性 - #80
Open
Apageoflove wants to merge 2 commits into
Open
Apageoflove wants to merge 2 commits into
Apageoflove wants to merge 2 commits into
Conversation
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.
群纪要(#79,0.7.10)这边收尾几处:关掉开关后记下的内容不再被藏起来,面板和 Bot 看到同一份
列表,Bot 回复里的协议标记改成大小写不敏感,尾巴切到词边界。
0.7.10 里关掉纪要开关,之前记下的内容会留在群资料里,但面板看不见它、也清不掉它,再打开开关
它又原样回到每个 Bot 的提示词里。现在只要记录还在,群设置里就一直显示这份记录和"清空纪要"
按钮;开关关着时另外写一句,说明它不再被记录、也不再给 Bot 看。记录本身保留到你清空为止——
"关掉开关就删掉记录"和"关掉只是暂停"是两种语义,这里选了不丢数据的那一种,README 里也
写清了。
面板显示的列表和 Bot 读到的是同一份:服务端在快照里就把它清洗和截断好,手工改过 state 文件
也不会出现"面板上有、Bot 看不到"的条目。
Bot 回复的结尾会进常驻简报,而伪造标记表原来只列了群纪要和交接那几种、还只认大小写完全相同,
上下文块
<minimax-bot-context>的结束标记不在表里——一条以它结尾的回复就可能把上下文块提前关掉。现在上下文块的两个标记也进了那张表,匹配改成大小写不敏感:换个大小写的标签仍然是标签,
去伪之后一律换成空格。简报里的这两个标记也改用同一份常量,不再各写一个字符串。提示词里那句
"是记录,不是共识"本来就在,它也算一层缓解。
尾巴原来按字符直接切,可能切在词中间,现在切完退到词边界,一条 240 字的记录不会以半个词
开头。另外把一处写错的注释改了(原来写"关掉会停掉交接",交接其实有自己独立的开关),面板
提示里也写明了上限(最多 6 条 / 1200 字,更早的轮次会掉出去),用户知道纪要不会无限长。
测过什么:上游
npm run check的两半都在本地跑了(scripts/validate.mjs对本插件报minimax-bot: OK 和 repository: OK,根目录 69/69 条测试);插件自带套件 257 过、0 挂(上一版
251,这一条补了 6 条:上下文标记防伪、大小写不敏感、词边界裁剪、面板与简报同源、关掉开关后
记录仍然可见可清,以及一条把群设置面板画出来看它确实显示记录的)。这一条也逐字节对照过:
纪要关着时,群常驻简报和私聊常驻简报(各中英文)以及 MCP 目录、list_team 的输出,都与合并
#79 后的上游 main 逐字节相同。版本 0.7.10 → 0.7.11
(#56 也改了版本行,谁后合谁要换号)。
m3.1f + zcode 完成,环境:ubuntu 24.04;其他环境未验证。
Need help on this PR? Tag
@codesmith-botwith what you need.