feat(dashboard): 增加多 Bot 话题聚合视图#499
Draft
nil-err wants to merge 1 commit into
Draft
Conversation
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.
背景
同一个飞书群里可能同时存在多个 Bot 会话,其中一部分会话位于同一话题,并通过 Bot-to-Bot 消息协作。现有 Dashboard 只能按单个 session 或整群展示,缺少稳定的话题聚合入口;当前持久化数据也没有
collaborationId/parentSessionId,不能可靠证明“谁唤醒谁”。本 PR 先落地不迁移历史数据的第一阶段:展示可证实的位置关系,并把最新 Bot 输入明确标为“推断”。
改动
(chatId, rootMessageId)聚合;chatId聚合;lastInputFromBot,由最新的quoteTargetSenderIsBot派生;现有会话收到新消息后通过session.update实时刷新。语义边界
lastInputFromBot只代表最近一轮输入来源,后续消息会覆盖;UI 全部标为“推断”,不把它当作完整协作因果链。collaborationId。验证
pnpm vitest run --project unit test/dashboard-attention-signals.test.ts test/dashboard-sessions-ui.test.ts test/dashboard-preferences.test.ts test/dashboard-mobile-layout.test.tspnpm buildgit diff --check截图
示意数据,不包含真实会话内容:
运行状态
未切换全局 Botmux wrapper,未重启 daemon / Dashboard,未部署该分支。