Repository navigation
feat(dashboard): 为发言人标签增加隐藏邮箱开关 - #2051
Merged
Merged
Conversation
pixystone
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
October 20, 2026 06:53
Owner
|
已合并,感谢贡献! 所有消息注入出口共用同一个 两个不阻断的文案类小项,方便的话欢迎后续单独提一个小 PR:
再次感谢,欢迎继续贡献。 |
|
🚀 Released in v3.48.0 |
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.
Closes #2050
部分 CLI 安全 hook 会拦截自动注入的 sender 邮箱。现在可以在「Dashboard → Bot 配置 → 高级 → 发言人标签」开启「隐藏邮箱信息」,只省略
<sender>的email,保留type、open_id和name。新增 Bot 级
senderTagHideEmail,默认关闭,与senderTag独立持久化;主开关关闭再打开不会丢失邮箱偏好。Dashboard API、聚合列表、配置加载、运行时热更新及/botconfig set senderTagHideEmail on|off一并接通,补充中英文文案和配置文档。仅影响下一次新构造的输入,不修改原始身份对象、权限数据、已排队输入、正文或历史。影响面:修改公共 sender 渲染入口,覆盖新话题、续聊、缓冲续聊和 codex-app additionalContext。测试覆盖 claude-code、codex、codex-app、cursor;权限闸门及回复寻址相关回归通过。没有修改 CLI 适配器、PTY/Tmux 传输、IM 身份解析或平台特有逻辑。验证环境为 Linux,未做 macOS/Windows 实机或生产 daemon 部署验证;部门 CLI 安全 hook 环境不可用,未宣称通过该环境的端到端提交测试。
验证:
bun run build:通过(含 TypeScript、脚本/测试 mock 类型检查、Dashboard bundle 和资源审计)。bun run test test/prompt-builder.test.ts test/dashboard-bot-payload.test.ts test/bot-config-store.test.ts test/dashboard-ipc.test.ts test/dashboard-sender-tag.test.ts test/cli-send-hook-context.test.ts test/identity-cache-strict.test.ts test/grant-gates.test.ts:8 个文件,665 项通过、2 项原有跳过。截图(实际组件,示例状态为开启隐藏邮箱):