Repository navigation
fix(dingtalk-tag): local_agent 入群后默认放行群消息 - #1480
Merged
haofeng0705 merged 2 commits intoOct 10, 2026
Merged
haofeng0705 merged 2 commits into
haofeng0705 merged 2 commits into
Conversation
haofeng0705
merged commit Oct 10, 2026
e132367
into
codex/localagent-message-status
6 of 48 checks passed
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.
问题与行为
local_agent 已被拉入群后,本地仍用个人可见范围拒绝群成员;群白名单为空时,内置 Agent worker 甚至不会订阅群消息。结果是私聊正常,群内 @ 没有进入 Agent。
本次按产品规则区分:local_agent 群聊以已入群为准,不叠加个人可见范围或本地白名单;私聊仍使用 DEAP 已发布可见范围,其他类型维持本地白名单。群事件入队前继续核实已发布身份、类型和在线状态,未知类型或查询失败不放行。
目标为数字员工专项 #1476 分支;原 #1479 已合入。本 PR 仅包含后续群聊修正。配套 DingTalk-Real-AI/dsh-dingtalk#28 。
实现
验证
DWS e6d14ae;DSH 81b3be51e50fff2ac2e868648f80082c04936928。
环境:macOS arm64、Go 1.26.7 / macOS 15.4 SDK、Node / pnpm 本机现有版本。
风险与回滚
涉及入站访问控制,仅 local_agent 群聊放宽;群成员可触发员工,但 Agent 文件权限和主管审批边界不变。其他类型仍执行本地白名单。可回退本提交并重启员工;本地替换前已备份专用二进制。未合并、未发布。
新增触发条件回归:普通群消息(正文即使包含 @1010 字样)不入队,原生 @ 事件进入队列;worker 实际 argv 不得订阅 group_all。DWS 定向回归通过(2.391s),DSH 343 项通过。17:53(北京时间)真实群聊对照验收通过。