feat: 优化会话列表状态提示并加速会话切换 - #59
Merged
Merged
Conversation
added 2 commits
September 17, 2026 08:38
- 待回复改为主题色实底、白色常规字重,文案统一为「待回复」 - 运行中使用四个圆点的聚拢/分离动画,保留 reduced-motion 静态降级 - 已读/无需处理不再渲染空心圆,避免侧栏冗余视觉噪音 - 点击会话后立即切换主内容并读取磁盘历史,把耗时数秒的运行时恢复放到后台 - 恢复期间禁止建立实时连接,避免 daemon 未注册时反复出现 unknown session - 恢复成功后使用 resume 响应构造活动会话引用,并保留最新点击优先语义 测试:web 定向架构测试与 pnpm build 通过
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.
变更内容
会话列表状态
role="status"、aria-label、title,并提供prefers-reduced-motion静态降级会话切换提速
resumePending,禁止建立实时连接,避免 daemon 尚未注册时反复出现unknown session验证
cd web && node src/lib/sidebarSessionLoadingArchitecture.test.jscd web && node src/lib/sessionTranscript.test.jscd web && node src/lib/permissionSidebarArchitecture.test.jscd web && pnpm build以上均通过。
注:完整
pnpm test中expertComponentsArchitecture.test.js存在与本改动无关的既有断言数量失败(expected 2, actual 3)。已知问题(后续单独处理)
会话
20260916-172915-f300存在一条 24.7MB 的异常用户消息(整份 HTML/DOM 快照),历史接口约 26MB、trajectory 约 52MB,切换时会卡住。本期改动对普通会话生效正常;针对超大消息的安全模式(预览截断 + 内存占位符恢复)已在设计确认中,将另行提交。影响范围
仅 Web 前端:侧栏状态展示、会话导航时序、i18n 文案与结构测试。未改动状态判定逻辑与后端。