Repository navigation
修复会话统计刷新闪烁,加入数字轮滚动效果 - #968
Merged
xiaozhou26 merged 4 commits intoOct 11, 2026
Merged
xiaozhou26 merged 4 commits into
xiaozhou26 merged 4 commits into
Conversation
StackCairn
marked this pull request as draft
October 11, 2026 13:47
Contributor
|
PR governance checks passed. Awaiting human review. |
AlphaCatMeow
marked this pull request as ready for review
October 11, 2026 13:48
StackCairn
marked this pull request as draft
October 11, 2026 13:48
AlphaCatMeow
marked this pull request as ready for review
October 11, 2026 13:49
StackCairn
marked this pull request as draft
October 11, 2026 13:49
AlphaCatMeow
marked this pull request as ready for review
October 11, 2026 13:57
Contributor
|
已补修后续分页失败时完整统计被部分数据覆盖的问题(c7290ca4)。缓存新增 failed 标记,区分成功完成与错误停止:刷新失败继续保留上一份展示快照;首次加载失败但已有部分窗口时标记 approximate,且不自动重试。下一版本成功刷新仍允许历史缩减或空历史清空。 新增 3 项回归:第二页失败、第三页失败、首次加载分页失败;修复前均失败,修复后通过。统计相关 47 项测试通过;桌面/WebUI 类型检查、Biome、UI 边界、git diff --check 通过;Gateway 重连测试连续 30 次通过。 Chrome 实际加载共享 hook + ConversationStatsBar,在 desktop/WebUI 两个 Vite 宿主及 1280px/390px 视口验证:刷新等待保留3轮、后续503仍为3轮、成功恢复降为1轮、空历史清空、切会话/禁用隔离、减少动态效果和无水平溢出。使用隔离 HTTP fixture,未改用户数据。待当前提交 CI 通过后合并。 |
Contributor
|
已合并到 v2-kbrian:d11cf0891446213d10597a338893f697b8de8e34。补修提交 c7290ca 的 CI 全部通过(Rust 按变更范围跳过);本次不创建发布标签。 |
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.
修复 issue #969。
Closes #969
会话执行任务时,K-brain 每两秒触发轨迹刷新,统计缓存失效后会在新数据返回前变空,导致输入框下方的统计条闪烁。本次刷新时保留同一会话上次的读数,待新版本分页完成后再替换;刷新失败继续保留读数,成功返回空历史则清空,切换会话或禁用统计时不沿用旧会话数据。
统计条中的数字改为独立数字轮,使用现有动画令牌做 160ms 的 transform 过渡。标签、单位和分隔符不参与动画,未变化的数字位保持静止,首次显示无滚动;减少动态效果模式下直接更新。Tooltip 和无障碍读数保持完整文本。
Gateway 的重连测试同时修复了两处时序问题:收到提交与去重确认后才让夹具发送首批事件,避免确认收帧器跳过首个 token;浏览器断开后等待 Gateway 实际收到终态再重连,避免只等 SSE 发送完成就检查重放。测试失败时也先释放 SSE 夹具再关闭服务器,避免清理阻塞。第二个 token 和唯一终态的重放断言保持不变。
验证:
实际调试客户端截图(输入框与统计条区域;静态截图展示布局,滚动过程在客户端验收):