Repository navigation
配置 QQ 群聊命令与工具权限并透传回合限制 - #2395
Merged
liukewia merged 4 commits intoNov 25, 2026
Merged
Conversation
This was referenced Oct 25, 2026
ideshun
marked this pull request as draft
October 25, 2026 10:58
seed30
reviewed
Oct 27, 2026
seed30
reviewed
Oct 27, 2026
ideshun
marked this pull request as ready for review
October 27, 2026 12:00
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.
问题与结果
关联 #2396。QQ 群成员可以通过内置斜杠命令改变共享会话,也可能通过普通消息驱动专家工具;人格提示词不能承担权限控制。
本 PR 提供群聊配置和薄透传。发送者鉴权放在 gateway,回合级工具限制放在 Harness;Octop 不重复实现工具授权。
改动
getattr(msg, "allowed_tools", None)兼容旧 Gateway 消息对象;新版消息中的 None / [] / 非空列表保持原语义,明确的空列表不会被转成 None。配套 PR
验证
通道界面截图:
群聊策略关闭状态:
修复前,群成员可以随意控制 Agent:
修复后,白名单以外的成员
/命令消息 Agent 均不响应,只响应正常消息:合入与发布要求
本 PR 暂为草稿,供联合审阅。先合并并发布 gateway #46、Harness #105,再由 Octop 的新版本升级流程同时提升两个 SDK 至包含这些能力的版本并更新锁文件,然后转为正式 PR / 合入。不能只升级其中一个 SDK,也不能用当前旧锁文件的测试结果代替配套版本验收。
工具禁用不会清除已经注入模型的私密上下文,也不是自定义工具或预编译子图内部行为的通用沙箱。已有 QQ 通道需要管理员主动开启工具保护。
目标分支:develop。已更新 CHANGELOG。