Repository navigation
feat(chat): 对齐 DSH 聊天样式与桌面嵌入体验 - #2495
Open
SuperstructureJH wants to merge 9 commits into
Open
SuperstructureJH wants to merge 9 commits into
SuperstructureJH wants to merge 9 commits into
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.
将 Chat 的侧栏、标题区、消息间距和输入框统一为 DSH 样式。输入框内以同尺寸横向卡片展示文件、知识空间和技能;底部左侧为加号和新建时的能力配置,右侧为模型与发送/停止。新建与续聊通过“+ → 选择知识空间”打开搜索、多选和确认弹窗,沿用企业可见范围与选择上限。Chat 添加菜单保留文件和知识空间两类资源。
桌面嵌入呈现右侧聊天内容,复用企业身份、主题与页面导航,左侧继续由 DSH 管理;独立网页保留平台导航。主题修复覆盖页面偏好、跟随系统及桌面宿主,Portal 与页面同步。首次发送按乐观消息状态即时收起 Chat / Work 选择;新建时选择工具、Skill 和深度研究,已有会话保持配置并支持补充上下文资源。云端侧栏行的左距、时间和长标题展示与 Work 对齐。配套桌面源码已推送 bisheng-work/V1.2.0@7edfd09。
基于 feat/bisheng-work-103@5beb3bc90(beta5),保留模型记忆、知识空间权限过滤、引用对照、文件夹上传及企业后台功能。协作约定见 docs/CHAT_STYLE_CONTRACT.md。
验证:生产构建、变更文件 lint、多语言检查通过。本次 4 文件 / 11 项实际组件测试覆盖资源移除与键盘操作、上下文保留、发送/停止、知识选择弹窗和主题;此前交付回归记录见 docs/STATUS.md。桌面类型检查和构建通过,完整回归 218 文件通过、PPT 个人模板一项保存按钮等待偶发失败;随后该套件和客户端 UI 套件重跑 2 文件 / 17 项全部通过。
质量检查边界:此前 Frontend Quality 的平台 93 项、client 21 项及 useAiChat.test.ts:294 的类型错误与干净目标基线一致,详见 原失败日志。本次定向检查通过,完整工作流结果以最新提交 Checks 为准;本 PR 保留既有质量检查及抑制规则。相关质量修复见 PR #2496。
3006 已部署 beta4 对应实现 chat-context-resources-20261016-r3,431 项文件指纹及前后端健康检查通过,其他服务保持。企业测试客户端实测浅/深色页面和知识弹窗、知识空间选择与回显、文件和空间同时选中、独立移除及焦点返回加号,外观恢复跟随系统。上传使用自建无敏感内容测试文件;本次验收覆盖展示与选择,知识检索实际回答、全部文件格式、beta5 正式安装包与 Windows 仍需专项验收。