Repository navigation
feat: 支持研迹助手长回答展开与收起 - #5
Merged
Merged
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.
改动说明
研迹助手的长回答此前会把正文完整铺开,连续阅读多个回答时需要反复滚动。本 PR 为每条助手回答增加独立的展开、收起入口:
关联 Issue
本次为已确认的产品交互改进,无关联 Issue。
测试报告
环境:Windows / Bun 1.4.2 / Node.js 24.19.0 / 仓库锁定的 Electron 39。
额外使用仓库 Playwright 驱动隔离、隐藏的实际 Electron 窗口,验证:长短回答边界、独立展开状态、整块表格、超长段落、来源弹窗、Enter/Space、展开与收起滚动位置、320px 面板和深色主题。固定流式事件样例覆盖了生成中完整展示、结束后保持展开、保存消息 ID 替换后的状态继承。没有调用真实模型进行质量或性能评估。
本地以上检查无失败。构建仍显示 Vite 插件弃用和大 bundle 警告;隔离开发窗口有 Electron CSP 提示,均未作为本 PR 扩展修改范围。全仓单元测试由 GitHub CI 执行,结果以对应提交的 checks 为准。
UI 截图
以下为实际 Electron 渲染截图。回答、引用与数值是固定交互验证样例,不代表实时行情或真实模型输出。
收起状态
展开状态
范围
仅调整展示、交互与前端临时状态;不修改模型提示词、原始回答、引用编号、后端协议或持久化数据格式。应用重启后,历史长回答恢复默认预览。本 PR 不重新打包或发布安装程序。