Repository navigation
feat(reminder): 支持会话 Owner 定时提醒免打扰时段 - #3563
Merged
deepcoldy merged 1 commit intoNov 18, 2026
Merged
Conversation
NickChilling
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
November 18, 2026 09:56
deepcoldy
reviewed
Nov 18, 2026
deepcoldy
left a comment
Owner
There was a problem hiding this comment.
复审结论
当前 head e45d3fcbaa58a720d64a86aeb78aa2afaf2a8edf 未发现 P1/P2,代码层面维持可合建议;合并前仍需等待剩余 CI 全绿。
对首审两条 P3 的复核
src/core/session-owner-reminder.ts:243不建议改成复用扫描开头的now。 两者并非重复计算:185 行的now固定在扫描开始,243 行在生产路径(未传scanAt)会在每次send前重新读取时钟。用真实控制器和可控Date.now()复验:21:59 开始扫描两个到期会话,第一次发送将时钟推进到 22:00,当前实现只发送s1;临时改成isOwnerReminderQuietTime(quietHours, now)后会错误发送s1、s2。还原后再次通过。因此首审这条简化建议不应采纳,现有写法应保留。- 保留一条非阻断文案 nit:
src/dashboard/web/bot-defaults-page.tsx:2060使用的错误文案只说开始/结束时间需不同,而 normalizer 也会拒绝格式和类型错误。浏览器timeinput 已约束正常操作,直调 API 又有 400,故仅为 P3,不影响合并。
关键行为核查
- 时间窗口起点含、终点不含;普通区间与跨午夜分支正确,严格校验及旧配置缺省关闭行为一致。
- 免打扰只推迟投递,不中断状态指纹、活动时间和到期记录跟踪;窗口结束后的下一次扫描可发送仍到期的提醒。
getQuietHours在每次发送前读取实时配置,同轮扫描中的配置变更能影响后续发送;重试与投递 UUID 语义未被破坏。- 改动不触碰 PTY/tmux 或 CLI 适配器,对各 CLI/后端一致;普通群共享会话、全局定时任务和其他通知路径不受影响。
本地验证
- 作者 head 与本地 rebase 树的 stable patch-id 均为
82fe7f5a48698d2c1f7d653bfc7cb23f0ac1d8e4。 bun run build:通过。bunx tsc --noEmit:通过。bun run test -- test/session-owner-reminder.test.ts test/bot-config-store.test.ts test/bot-registry.test.ts test/bot-defaults-save.test.ts test/dashboard-bot-payload.test.ts test/dashboard-command-palette-index.test.ts test/dashboard-i18n.test.ts test/dashboard-daemon-proxy-routes.test.ts test/dashboard-ipc-bad-json.test.ts test/dashboard-ipc-bound-bot-guard.test.ts:10 个文件、690 个用例全部通过。bun test test/session-owner-reminder.test.ts:20 个用例全部通过。git diff --check:通过;变异探针结束后工作树干净。
发布本结论时,已完成的 11 项 CI 均为 SUCCESS;test (1/4)、test (2/4)、test (4/4) 与聚合 bun-test 仍在队列中。
Owner
|
感谢贡献,已合并。 一个不阻断的小 follow-up:Dashboard 保存会话 Owner 提醒配置时,前端失败文案只提示「免打扰开始和结束时间需不同」,但服务端 以上为自动评审的初步意见,最终以维护者审阅为准。 |
This was referenced Nov 18, 2026
|
@NickChilling @deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。 这次运行覆盖 7a7307e…697de2f8e(10 个提交),同批合入的还有 #3540 #3552 #3556 #3530 #3558 #3561 #3562 #3560 #3564,失败不一定由本 PR 引起。
|
This was referenced Nov 18, 2026
|
🚀 Released in v3.59.20 |
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.
改动
验证
bun run build通过。bun run test定向覆盖提醒、配置存储、配置加载和 Dashboard API,共 7 个文件、636 个用例通过。命令面板索引测试通过。设置页