Skip to content

feat(vocab): 为 Windows 和 Android 增加确认式手改学词 - #1128

Closed
HKLHaoBin wants to merge 5 commits into
Open-Less:betafrom
HKLHaoBin:feat/1127-vocabulary-learning
Closed

HKLHaoBin wants to merge 5 commits into
Open-Less:betafrom
HKLHaoBin:feat/1127-vocabulary-learning

Conversation

@HKLHaoBin

@HKLHaoBin HKLHaoBin commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

摘要

Fixes #1127

为 Windows 和 Android 补齐「听写落字后手动改词 → 建议确认 → 加入词典」流程。设置入口位于「实验与扩展」主页,点击「手改学词」后进入独立配置页;历史详情也提供显式学词入口。

功能

  • Windows 使用 UI Automation,Android 使用无障碍文本变更观察与原生确认卡;macOS 继续使用现有宿主观察能力。观察失败不阻断听写。
  • 独立授权默认关闭,仅保存在本机,与光标上下文读取及云同步授权分离。密码框和已知敏感应用仍被排除;观察文本不发送给模型,确认前不写入词典。
  • 独立配置页提供观察时长(10–60 秒,默认 60)、建议保留时长(5–60 秒,默认 10)和自动建议最大词长(2–32 个字符,默认 12)。参数实际应用于观察器、建议有效期和词条筛选。
  • 修改参数立即结束当前观察、清除旧建议,下次听写使用新值。恢复默认参数不改变启用开关。Android 主进程与无障碍进程共享本轮截止时间,重连不延长观察。
  • 历史详情与 Android IME 编辑结果提供确认式显式加词;词条使用统一的学词来源标记。补齐八种语言和中英文 README。

范围与兼容

  • 来源为 HKLHaoBin:feat/1127-vocabulary-learning,不包含集成测试分支中的其他 PR。
  • 旧配置使用原来的默认参数。Linux 原生宿主观察不在本次范围;目标编辑器不支持观察时,可使用历史详情的显式入口。

验证

  • 前端生产构建、TypeScript 检查、设置导航与布局契约检查。
  • Core 单元测试:1,055 项通过、0 项失败、1 项忽略;覆盖旧配置迁移、参数归一化、有效期、词长边界与配置变更后的旧观察失效。
  • Windows Tauri 后端 cargo check --lib。
  • H5 交互检查:实验入口、独立配置页、参数回显、恢复默认保持关闭、旧入口移除。
  • GPT-5.6 Luna review-bugbot 审查;修复 Android 截止时间后复审无新发现。
  • 当前提交 147bde25 的跨平台 CI 与产物构建全部通过:上游 PR CI、fork CI、Windows/macOS、Linux egui、Android 四种 ABI。

维护者已反馈此前集成测试包的桌面端和移动端自测未发现问题;本次新增参数页尚未进行真机自测。

appergb pushed a commit that referenced this pull request Sep 30, 2026
Preserve the current model navigation and Android IME consent flow.
Share Core deadlines across web and Android suggestions, retain local-only consent and settings, and rearm UI expiry after resolved entries.

Co-authored-by: HKLHaoBin <we3q@qq.com>
appergb added a commit that referenced this pull request Sep 30, 2026
Integrate ASR/Omni fixes, API Route, Android IME and confirmation-based vocabulary learning. Complete settings transitions and macOS single-item credential storage. Synchronize all application versions to 2.0.0-Beta.4+build.20260930.

Integrated PRs: #1116, #1120, #1121, #1123, #1124, #1067 and #1128. Linux #1117 remains independent and is excluded from automatic release.

Validated: full cross-platform CI, 18 UI motion cases, 112 frontend test files, 1245 Core tests (1 ignored) and 572 macOS native tests.

Co-authored-by: HKLHaoBin <we3q@qq.com>
@appergb appergb closed this Sep 30, 2026
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.

[windows][android][vocab] 词典手改学习仅 macOS:扩展宿主观察与替代入库

2 participants