Skip to content

fix(ui): 修复模型选择刷新闪烁 - #970

Merged
H-Chris233 merged 4 commits into
Open-Less:betafrom
H-Chris233:codex/fix-958-select-flicker
Aug 20, 2026
Merged

fix(ui): 修复模型选择刷新闪烁#970
H-Chris233 merged 4 commits into
Open-Less:betafrom
H-Chris233:codex/fix-958-select-flicker

Conversation

@H-Chris233

@H-Chris233 H-Chris233 commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

摘要

Fixes #958.

修复 / 新增 / 改进

  • 移除 LocalAsr 在初始刷新 effect 中重复创建的 3 秒轮询。
  • 保留唯一的轮询,并在下载模型弹窗打开时暂停,避免刷新期间持续重渲染选择控件。
  • 增加回归契约测试,确保只有一个刷新轮询且弹窗打开时会暂停。
  • 修复 macOS CI 中流式润色回归测试的过紧时序:首个 chunk 不再人为延迟,测试预算调整为 500ms,后续 chunk 间隔 150ms;不改变生产超时逻辑。

兼容

  • 不包含:SelectLite 公共组件、模型加载逻辑、ASR 状态逻辑或其他页面选择行为变更。
  • 对现有用户 / 本地环境 / 构建流程的影响:模型目录仍会自动刷新;下载弹窗打开期间暂停刷新,关闭后恢复。

根因

1.3.17 从 #928 引入了初始 effect 的 3 秒刷新轮询;同一改动随后又加入了按下载弹窗状态重建轮询的 effect,却没有删除前一个轮询。关闭弹窗时两个轮询同时刷新,打开弹窗时仍有一个轮询,Windows 上表现为模型及其他选择控件闪烁。

测试计划

  • 命令:npm run build
  • 命令:npm test(51 个测试)
  • 命令:cargo test --locked --manifest-path openless-all/app/src-tauri/Cargo.toml polish::tests::streaming_survives_when_total_duration_exceeds_first_token_budget -- --exact
  • 命令:cargo test --locked --manifest-path openless-all/app/src-tauri/Cargo.toml --lib(1175 passed)
  • 命令:git diff --check upstream/beta...HEAD

@H-Chris233
H-Chris233 marked this pull request as ready for review August 19, 2026 15:22
@H-Chris233
H-Chris233 force-pushed the codex/fix-958-select-flicker branch from ccfa93e to e2c0f63 Compare August 19, 2026 15:34
@H-Chris233 H-Chris233 changed the title fix(ui): 移除选择值切换闪烁 fix(ui): 修复模型选择刷新闪烁 Aug 19, 2026
@H-Chris233
H-Chris233 marked this pull request as draft August 19, 2026 15:36
@H-Chris233
H-Chris233 marked this pull request as ready for review August 20, 2026 05:25
@H-Chris233
H-Chris233 merged commit fac8ddc into Open-Less:beta Aug 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[area] BUG Windows sherpa-onnx Local在新版本中模型选择框闪烁

1 participant