Files
openless/docs/2.0-desktop-acceptance.md
T
sim 69f454bd68 feat(ui): integrate 2.0 interface and agent work
Consolidate the current 2.0 sidebar, overview, settings, vocabulary editing, correction rules page, and first-launch splash with their Core and Tauri adapters. Include the accompanying source and architecture documentation updates.

Validation: npm test (build and 73 discovered test files); cargo test -p openless-core --locked; Core/Linux and Tauri rustfmt checks.
2026-09-08 11:12:05 +08:00

3.7 KiB
Raw Blame History

桌面验收清单(Windows / macOS / Android)

状态:要求清单,不是通过声明;更新:2026-09-08。每个功能域给出源码入口与必须提供的真实证据;自动化测试通过不等于设备验收通过。证据分级见范围第 4 节。

1. 功能域 → 源码入口 → 验收要求

域 源码入口(openless-all/app/) 必须的真实证据
启动/生命周期 src/App.tsx(?window= 分支)、src/components/CoreStartupScreen.tsx、src-tauri/src/lib.rs 启动合同 启动快照与版本校验、错误可读与重查、崩溃后恢复
听写 src-tauri/src/coordinator/dictation_core.rs + Core dictation_engine.rs 首帧、热键触发、取消、静默自动停止、落字 reconciliation、错误恢复
快捷键与插入 src-tauri/src/lib.rs(global_hotkey_runtime)、src/components/ShortcutRecorder.tsx、windows-ime/ 全局注册/冲突提示/重绑/重启还原;Windows IME 落字与回退
AI 服务与渠道 src/pages/settings/{ChannelList,ProvidersSection}.tsx、src-tauri/src/commands/{providers,channels,credentials}.rs 渠道增删改/启停/验证结果展示/凭据安全存储(明文不落盘)
本地模型 src/pages/LocalAsr/、src-tauri/src/commands/local_asr.rs、Core model_store.rs 下载/取消/激活原子性;Windows Foundry/Sherpa;macOS Apple Speech/MLX
历史 src/pages/History.tsx、src-tauri/src/commands/history.rs 列表/详情切换(窄窗)、重润色结果保留、录音归档与导出
词库与纠错 src/pages/{Vocab,Corrections}.tsx、src-tauri/src/commands/dictionary.rs、Core vocabulary.rs / correction.rs 词库管理、纠错记录展示/删除/批量清理、重启后持久化与错误反馈
风格包与市场 src/pages/{Style,Marketplace}.tsx、src-tauri/src/commands/{style_packs,marketplace}.rs 导入/应用/导入导出失败反馈;市场浏览/安装/OAuth
划词与 QA src/pages/{SelectionAsk,SelectionPolishPreview,SelectionVoiceIntentPicker,QaPanel}.tsx 触发→意图→预览→应用/取消/撤回;epoch 防旧事件覆盖
Less Computer src/pages/LessComputer{Panel,Glow}.tsx、src-tauri/src/coding_agent/ 工具审批/输出/取消;Windows Job 对象与进程清理
手机输入 src-tauri/src/remote_server/、远程输入页面 配对/TLS/会话桥接/弱网与陈旧地址处理
胶囊与多屏 src/components/Capsule.tsx、src-tauri/src/coordinator/capsule_focus.rs 跟随光标所在屏、多显示器/多 Space 正确显示
音频提示 src/components/AudioCue.tsx、src-tauri/src/audio_mute.rs 提示音、系统静音/恢复所有终态恢复音量
设置与更新 src/pages/settings/(navigation.ts)、src/components/{AutoUpdate,AutoUpdateGate}.tsx 自动保存提示、焦点返回、更新安装失败可见与手动兜底

2. 平台特有门槛

  • Windows:TSF/IME 管线(windows-ime/ 工程;scripts/windows-ime-*.ps1、scripts/windows-package-msvc.*);Foundry/Sherpa 本地 ASR;scripts/windows-*-smoke.ps1 套件在真机执行。
  • macOS:AX/TIS 授权流、Apple Speech、MLX(scripts/macos-mlx-*.mjs、scripts/macos-capsule-spaces-contract.test.mjs)、签名与公证(scripts/build-mac.sh、release workflow)。
  • Android:APK 工作流(.github/workflows/android-apk.yml)+ 悬浮窗/无障碍/Shizuku 契约(scripts/android-*.test.mjs)。

3. 完成口径

安装包、签名、公证与最终 head CI 证据分别记录;未执行项不得改写为通过。设备/安装/升级/回滚验收是发布门,不属于本清单可由代码自证的部分。