You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
话题群用于 oncall 时,优先将答案私聊发送给本轮提问人,减少群内打扰;私聊无法投递时,答案自动回到原群话题。配置位于“群 × 机器人角色”,默认关闭,同一机器人在不同群独立生效。
行为与边界
/card show、/cot show均不能绕过。失败降级沿用原回复路径,不恢复公开过程气泡。实现与影响
复用角色 metadata、角色 API、逐轮发送人与机器人身份记录,以及已有 Lark 发送接口。覆盖
botmux send正文、附件、语音和 daemon 回复;不增加私聊续接映射或用户白名单。发送失败后继续走原发送链路及其校验,共用 Lark 传输限制保留。改动位于公共 CLI/daemon 层,未修改 CLI 适配器或 PTY/Tmux 后端。不同 CLI 共用此投递逻辑;自动化验证覆盖群话题降级、普通私聊/chat-scope 不受影响和既有桥接路径。第三方 CLI/API 自行发送消息不受此开关控制。
已 rebase 到 master
a2a02ee。总计 18 个文件,+484 / −9,含测试和 1 张约 43 KB 的真实配置截图。验证
bun run build通过;以下 14 个测试文件、798 个用例通过:bun run test test/private-reply.test.ts test/session-reply-thread-anchor.test.ts test/role-resolver.test.ts test/cli-send-dispatch.test.ts test/cli-send-hook-context.test.ts test/cli-send-slash.test.ts test/reply-target-fallback.test.ts test/event-dispatcher.test.ts test/session-group-birth-anchor.test.ts test/bridge-fallback-gate.test.ts test/bridge-final-output-retry.test.ts test/cot-message.test.ts test/cli-send-private-reply.test.ts test/scheduler-silent-execute.test.ts新增真实 CLI 入口集成测试,拦截底层 HTTP,覆盖私聊成功、失败回原话题、旧轮次收件人缺失,以及拒绝
--into/--chat-id改写目的地。daemon 回归覆盖无轮次/命令回执、发送失败降级;思考气泡回归覆盖强制显示也不公开输出,同时通过 master 新增的静默定时任务气泡及既有静默任务回归。最新构建已在本地部署并重启,目标机器人在线,群角色开关与提示文案回读正常;更新后的界面已实页检查并截图。此前真人飞书验收已覆盖私聊成功、原话题追问、权限控制及默认关闭;失败回群分支由自动化模拟验证,尚未新增真人失败场景验收。
配置界面
入口:角色管理 → 按群组 → 选择机器人 → 优先私聊回复提问人。下图为手动开启后的实际页面,默认关闭。