Skip to content

feat(windows): 录音快捷键联动语音唤醒并补齐状态浮窗 - #1270

Open
HKLHaoBin wants to merge 4 commits into
Open-Less:betafrom
HKLHaoBin:feat/issue-1264-voice-activation-hotkey
Open

HKLHaoBin wants to merge 4 commits into
Open-Less:betafrom
HKLHaoBin:feat/issue-1264-voice-activation-hotkey

Conversation

@HKLHaoBin

@HKLHaoBin HKLHaoBin commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

摘要

Fixes #1264。

在 Windows 语音唤醒设置下增加“与录音快捷键联动”,用同一快捷键临时开启 / 暂停监听,不反复修改持久化总开关。根据 issue 提供者的测试反馈,补充现有胶囊浮窗确认,成功开启 / 暂停后显示 2 秒自动收回。

修复 / 新增 / 改进

  • 联动默认关闭;启用联动及应用重启后从临时暂停开始。四种录音手势统一按一次有效物理点击切换,保留按键配对、组合键仲裁、防抖和重复事件抑制。
  • 暂停优先于低延迟预热、配置重载和后台恢复,释放监听所持麦克风资源;已经进入交接或正式听写的正文正常收尾,不取消已录内容,不强停其他显式录音任务。
  • 复用现有 Classic / Siri 胶囊:成功后显示“唤醒监听已开启”或“唤醒监听已暂停”,沿用 2 秒自动收回、非激活展示及多显示器定位策略,不新增窗口或提示音,并尊重浮窗总开关。
  • 提示绑定显式点击的运行时意图版本,只确认实际完成状态;启动默认暂停、自动 rearm、resync、失败和陈旧回调不重复显示成功提示。录音 / QA / 选中语音等正在占用胶囊时不抢占,旧收回定时器不能隐藏更新的浮窗。
  • 增加 Core、录音资源、浮窗反馈和设置页回归测试。已合入最新 upstream/beta(39e83af9),无冲突。

兼容

  • 新偏好属于本机麦克风配置,不参与加密跨设备同步;旧配置默认关闭,关闭联动后恢复原录音模式。
  • 等待唤醒时使用本地识别;正式听写继续使用当前 ASR 配置,不代表全流程离线。模型 / 权限 / 设备错误继续保留设置页状态与恢复入口。
  • 不包含:新增声音、额外窗口、唤醒词匹配或超时语义重做,以及其他 issue 中的快捷键扩展。
  • 未在本机编译、测试、打包或构建依赖;所有验证和产物均在 GitHub Actions 完成。

测试计划

验证提交:de6255d2eb049bbc685d923a7e7d9a85d44ba7d0。

  • Review Bugbot:修复测试夹具缺失初始化后复审,No bugs found。
  • 分支 CI 全部通过。Windows 实际执行 6 条浮窗反馈、9 条联动集成、3 条暂停资源回归;macOS 实际执行 6 条浮窗反馈及录音资源测试;UI Chromium / WebKit、Android check、Harmony 和 Linux 门禁通过。
  • 桌面构建全部通过:Windows x64、macOS ARM、macOS Intel。
  • Android aarch64 构建通过,APK。
  • 本 PR 自动检查:已用 gh run watch --exit-status 等待并核验 CI 全部通过 和 iOS 测试 / 真机目标构建通过,均对应上述提交;Linux 发布步骤按 PR 规则跳过。
  • Windows 实机验收新增浮窗的可见时长、多显示器位置、焦点保持及真实麦克风占用;自动化通过不替代硬件验证。Issue 提供者已确认上一版快捷键联动生效,新增浮窗仍待实机验收。

🤖 Generated with Claude Code

HKLHaoBin and others added 4 commits October 25, 2026 02:50
Add opt-in local-only wake-listener linkage with runtime pause intent, capture prewarm suppression, body-preserving finalization, native combination arbitration, and durable inline settings status. Add Core, recorder, frontend and settings regressions for lifecycle races.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Keep the mobile hotkey release shape in sync, disambiguate settings category navigation in the new Playwright regression, and update the shared IPC audit for the listener state query. Fixes identified from full GitHub Actions CI and Android logs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Give each integration fixture a UUID data directory instead of relying on Windows clock resolution. Refresh browser listener status on confirmed settings snapshots and ignore obsolete async responses after optimistic writes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Reuse the existing capsule for successful listener enable/pause feedback,
with the existing two-second timeout and shared-surface ownership guards.
Track explicit click intent revisions to suppress startup, stale and rearm
notices. Make legacy terminal hide timers honor their captured epoch.

Integrate upstream/beta 39e83af without conflicts and add remotely executed
Rust-only feedback regression tests. Bugbot re-review: No bugs found.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-26T06:43:47.107421Z
We couldn’t complete this review. Comment @codex review to try again.
de6255d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@H-Chris233 H-Chris233 added area:hotkey Hotkey area area:recording Recording area area:voice Voice area enhancement New feature or request large-change Large or risky change needs-review Needs review needs-tests Needs tests P2 Medium priority platform:windows Windows-specific labels Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:hotkey Hotkey area area:recording Recording area area:voice Voice area enhancement New feature or request large-change Large or risky change needs-review Needs review needs-tests Needs tests P2 Medium priority platform:windows Windows-specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[windows]功能建议:语音快捷键可联动设置语音唤醒听写开关

2 participants