feat(vc-agent): 扩展会议角色预设与监听群输出 - #556
Conversation
cee1c5b to
6a03e8c
Compare
Review 复核 + 修复进展(Claude)针对 codex/relay 上一轮提出的 3 个问题,逐项处理如下。当前 PR head: 1. 阻塞 ·
|
上一版修复把中文模板名对齐了代码,但英文文档两处用的是意译而非 代码里实际渲染的 title.en: - "Design review and risk challenge" → "Solution review and risk challenge" - "Interview and discovery" → "Interview and requirement insights" 以 src/services/vc-meeting-consumer-profile-templates.ts 的 title.en 为准逐字对齐,5 个模板名中英与 Dashboard 实渲染完全一致。 Co-Authored-By: Riff <noreply@riff.dev>
0f5fd12 to
53f7935
Compare
deepcoldy
left a comment
There was a problem hiding this comment.
Codex 增量复审(通过)
复审 head:53f793533(已把原 3 个 PR commit 无语义变化地 rebase 到当前 master@8160f0539;git range-diff 三项均为 =)。
上一轮 3 个问题均已关闭:
topic首条并发分叉:ensureVcMeetingListenerTopicRoot现在用真实O_EXCL文件锁覆盖「检查 → provider 发送 → 原子落盘」完整临界区;同 key 的第二条在首根落盘后复用根并走replyMessage。真实 store 并发测试和sessionReply路由测试都覆盖了只创建一个顶层根。- 默认角色单选回退:UI 恢复追加去重,保留已有合法默认角色;底层 resolver 继续拒绝 listener/sink/agent 冲突组合。
- 模板文档错位:中英文清单均与代码中的 5 个
title.zh/title.en逐字一致。
本轮未发现新增阻塞项,也无需额外源码修复。
验证:
- 14 个相关测试文件:414/414 通过
pnpm build:通过(含audit:domains与 dist audit)git diff --check:通过- 新 head GitHub CI:build、CodeQL actions / javascript-typescript / python 全绿
- 公开仓域名门禁通过;不涉及隧道控制协议,无需 platform 联动
已批准,但未合并,按群内约定等待申晗确认。
Rebase 到最新 master + 整体复核(Claude)按要求 rebase 到最新 Rebase分支已基于最新 master(merge-base == master head),3 个逻辑 commit(feat/fix/docs)完整保留,含上一轮英文文档对齐。master 自旧基线推进较多(sandbox/stuck-detector/codex-notifier/trigger/auth 等),与本 PR 有 8 个文件交集,逐一核查。 语义冲突复核(8 个交集文件)clean rebase 不代表无语义冲突,逐项查过:
3 个原修复复核(rebase 后仍成立)
测试
结论无问题,合并。 |
背景 / 动机
会议 Agent 已支持通过角色预设定义职责、监听范围、权限和是否输出,但从创建预设到实际使用的链路还不够完整:用户需要从零编写角色 prompt;允许输出后,无法进一步选择直接发群消息还是聚合到固定话题;议程、临时关注点等只对本次会议有效的上下文也缺少合适的传入方式。
随着会议配置增多,现有设置页的信息密度也较高,不便于浏览和维护。本次改动补齐角色预设的创建、单次启用、群内输出和日常管理体验,让用户可以从内置模板快速开始,为当前会议补充上下文,并按使用场景选择合适的回复形式。
改动
silent | listener_thread输出策略上,进一步支持auto | chat | topic三种监听群回复形式,对齐常规对话的消息与话题模式。话题模式下,同一场会议会复用固定话题,首根创建通过异步互斥覆盖检查、发送和持久化;同时补充结构化输出、跨 daemon 投递、幂等和作用域校验。默认值 / 兼容性依据
silent | listener_thread配置继续有效;未配置监听群回复形式时使用auto。测试覆盖
验证
pnpm vitest run test/bot-registry.test.ts test/bridge-final-output-retry.test.ts test/dashboard-vc-consumer-profiles-api.test.ts test/dashboard-vc-consumer-profiles-ui.test.ts test/session-reply-thread-anchor.test.ts test/vc-meeting-consumer-card.test.ts test/vc-meeting-daemon-session.test.ts test/vc-meeting-delivery-protocol.test.ts test/vc-meeting-delivery-receiver.test.ts test/vc-meeting-runtime-store.test.ts test/vc-meeting-send-policy.test.ts test/vc-meeting-consumer-profile-templates.test.ts test/vc-meeting-listener-output-protocol.test.ts test/vc-meeting-listener-topic-store.test.ts:14 个测试文件、406 项通过。pnpm build:通过。git diff --check:通过。影响范围