Skip to content

[windows/capsule] 修复胶囊和悬窗生命周期 P0 #480

@Cooper-X-Oak

Description

@Cooper-X-Oak

This was generated by AI during triage.

Parent

#478

Triage

  • Category: bug
  • State: ready-for-agent
  • Requested state label: ready-for-agent
  • Requested repository labels (not applied by this run due label permissions): bug, windows, priority: high

What to build

修复 Windows beta 上胶囊/悬窗生命周期的 P0 断点:触发语音输入后必须显示录音胶囊;悬窗提示“再按一次快捷键结束”时,第二次快捷键必须实际结束录音并进入提交/处理流程;Esc 或点击退出不能造成应用未响应白框。

该 vertical slice 覆盖从 hotkey event 到 coordinator state、capsule window visibility、recording stop/cancel、idle cleanup 的完整路径。

Acceptance criteria

  • Windows 10 22H2 下,语音输入触发后能稳定显示录音胶囊。
  • 录音中再次按提示快捷键,可以稳定结束录音并进入提交/处理流程。
  • Esc 取消和点击悬窗退出不会出现“应用未响应”白框。
  • 日志能看到完整状态迁移:hotkey press -> capsule shown -> recording -> stop/cancel/submit -> idle。
  • [windows] 悬窗弹出后再次按快捷键无响应 #476 复现路径重新验证时,不再出现再次按快捷键无响应。
  • [Windows] [bug] 语音输入不显示录音胶囊 #470 复现环境重新验证时,不再出现语音输入无胶囊提示。

Blocked by

None - can start immediately.

Evidence

Expected / Actual

Expected: 胶囊生命周期和界面提示一致;用户能看到录音状态,能通过提示快捷键结束录音,能通过 Esc 或点击取消,并且所有路径都会回到 idle。

Actual: Windows beta 用户报告胶囊不显示、二次快捷键无响应、Esc/点击退出卡成未响应白框。

Validation gate

  • openless-all/app 下运行:powershell -ExecutionPolicy Bypass -File .\scripts\windows-smoke-suite.ps1 -SkipRealAsr -SkipPrivacy
  • 如果修改 capsule 生命周期,补充或运行:powershell -ExecutionPolicy Bypass -File .\scripts\windows-capsule-lifecycle-smoke.ps1
  • 人工复测 [windows] 悬窗弹出后再次按快捷键无响应 #476 视频路径:打开悬窗、进入录音中、再次按提示快捷键、确认状态进入结束录音/处理。
  • 人工复测 [Windows] [bug] 语音输入不显示录音胶囊 #470 环境等价路径:Windows 10 22H2 上启动语音输入,确认胶囊可见。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions