openless
openless copied to clipboard
feat(windows): WebView2 lazy webviews + Android auto-update + history repolish
User description
Summary
- Windows (WebView2 memory): Lazy-create auxiliary webviews (QA, less-computer, glow) and destroy them on dismiss; add
QaStateSnapshotfor cold-start hydrate; lazy-load FloatingShell tabs and Settings sections to shrink main-window first paint and idle renderer count. - Android auto-update: Background check/download with stable/beta channels, settings UI alignment, updater logic extraction + unit tests, CI release signing on dispatch when keystore secrets exist, and fixes for launch-time JNI crashes (
Build.SUPPORTED_ABIS, accessibility state, ProGuard@Keepon bridge methods). - History (#653): Opt-in polish-unchanged detection, history-level repolish IPC/UI (excluding translation history), and preserve insert error codes on retry.
- Dictation: Compute
done_messagebefore movingerror_codeinto session (fixes a move-after-use bug).
Test plan
- [ ] Windows: cold start — confirm main window loads; open/close QA panel, glow, less-computer; verify auxiliary webviews are created on demand and memory drops after dismiss
- [ ] Windows: QA panel re-open after dismiss — state hydrates via snapshot
- [ ] Android: launch app — no crash ~4s after start (updater background check)
- [ ] Android: auto-update settings — stable/beta toggle, manual check, download + install flow
- [ ] Android: overlay recording still works after foreground-service changes
- [ ] History: enable polish-unchanged detection; verify repolish retry on unchanged polish; translation history excluded
- [ ] Dictation: error paths still emit correct done message
PR Type
Bug fix, Enhancement, Tests
Description
-
Lazy-create auxiliary webviews (qa, less-computer)
-
Android auto-update with stable/beta channels
-
Detect polish unchanged and allow history repolish
-
Fix JNI read of Build.SUPPORTED_ABIS
Diagram Walkthrough
flowchart LR
subgraph Desktop
A[WebView2 lazy-create] --> B[qa/less-computer/glow]
C[Hide→destroy] --> D[Free memory]
end
subgraph Android
E[AutoUpdateGate] --> F[stable/beta manifest]
F --> G[Download+install]
end
subgraph History
H[Polish unchanged detection] --> I[mark polishUnchanged]
I --> J[Repolish button]
end
File Walkthrough
| Relevant files | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Enhancement | 28 files
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bug fix | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Tests | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Documentation | 7 files
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Configuration changes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Dependencies | 1 files
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Additional files | 1 files
|
PR Reviewer Guide 🔍
Here are some key observations to aid the review process:
|
🎫 Ticket compliance analysis 🔶 653 - Partially compliant Compliant requirements:
Non-compliant requirements:
Requires further human verification:
|
| ⏱️ Estimated effort to review: 4 🔵🔵🔵🔵⚪ |
| 🧪 PR contains tests |
| 🔒 No security concerns identified |
| ⚡ No major issues detected |
感谢投入,但这个 PR 先关闭一下 🙏
主要问题是一个 PR 里捆绑了三块互不相关的改动,共 1715 行 / 47 个文件:
- Windows WebView2 懒加载 / 内存优化(
QaPanel、qa.rs、FloatingShell懒加载等) - Android 自动更新(
OpenLessUpdateInstaller.kt、updater.rs/updater_logic.rs、AutoUpdate*.tsx、BetaChannelSection、android-apk.yml等) - 历史记录 repolish(
History.tsx、history.rs)
这种捆绑违反单一职责,审查、回归、出问题时回滚都很困难;而且重型构建 CI(Linux / Windows / macOS checks)此前没跑过,只有 pr_agent_job。
建议按上面三个关注点拆成三个独立 PR,各自审查、各自合并。欢迎拆分后重新提交,关闭不代表否定其中任何一块。