Repository navigation
goxf(rooms): 群聊共享背景(角色/技能/群背景)+ 沉淀本轮结论 + 新话题 - #58
Merged
Merged
Conversation
GOXF
marked this pull request as ready for review
December 3, 2026 03:15
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.
负责:Hark/context · 预计 2026-12-03 11:40 北京
一页计划
目标:群聊共享背景能力——成员视角(角色)、群共享技能、群背景文字;按指纹只在需要时整段注入;「沉淀本轮结论」「新话题」两个动作。本 PR 只做逻辑 + 数据结构 + 测试 + 效果图。
不做什么:不写真实界面接线(项目规则:效果图确认「开工」后再写);不改主进程/IPC;不做 LLM 摘要(沉淀用规则摘要:去 [FINAL]、压空白、每条 ≤800 字)。
验收条件
memberRoles(botId→视角文字)、sharedSkills({id,name,content,enabled}[])、sharedContext(≤8000 字)、topicStartId;RoomMember 新字段contextFingerprint。旧数据读回为 undefined,不报错。主要风险
model.ts/roomStore.ts:只加了挂钩点(model.ts 加字段 + turnPrompt/seatPrompt 起点取topicStartIndex;roomStore.ts 加读回字段、prompt 注入一行、回复记指纹),合并时可能有小冲突。[本轮结论 …]标题格式是中性化规则的识别依据,用户手改格式后 Hark 收到的会带原文(无害,只是不够中性)。任务清单
验证(2026-12-03 北京,0a18779)
npm run typecheck→ 0npx vitest run(全量,分段):src/renderer src/shared src/preload→ 0(597 通过);src/adapters→ 0(11 文件 55 通过);src/main --exclude src/main/mcp/hub.test.ts→ 0(82 文件通过/1 跳过,610 通过/3 跳过);src/main/mcp/hub.test.ts单独 → 0(12 通过)npx electron-vite build→ 0npm run design:check→ 0(design OK,contrast OK)进度与交接