fix(windows): 延后剪贴板恢复并补齐插入回归覆盖#160
Conversation
There was a problem hiding this comment.
Sorry @Cooper-X-Oak, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 780a4a4483
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let visible = matches!( | ||
| state, | ||
| CapsuleState::Recording | CapsuleState::Transcribing | CapsuleState::Polishing | ||
| ); |
There was a problem hiding this comment.
Show capsule for done/cancelled/error states
emit_capsule now treats only Recording|Transcribing|Polishing as visible, so Done, Cancelled, and Error immediately go down the hide path. That removes the only on-screen completion/error feedback emitted by end_session/cancel_session and makes schedule_capsule_idle effectively moot for those outcomes, which is a user-facing regression across platforms whenever insertion succeeds/fails or a session is cancelled.
Useful? React with 👍 / 👎.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
摘要
Closes #159
这个 PR 承接的是 Windows terminal insertion 链路的一次收敛修复:
Ctrl+V”的用户反馈因此,这个 PR 的目标不是去声称“当前存在一个稳定复现的 terminal bug”,而是:
修复 / 新增 / 改进
150ms提高到750mswt-cmdwt-powershellnotepadstart_dictation/stop_dictationTermControl兼容
debug_assertions/ test 构建下参与测试计划
cargo fmt --allcargo check --libpython -m py_compile openless-all/app/scripts/windows-openless-lifecycle-e2e.pywindows-real-asr-insertion-smoke.ps1脚本解析通过150ms150ms750mswt-cmdwt-powershellnotepaddocs/2026-05-02-windows-terminal-clipboard-restore-investigation.mddocs/github-tracking/issue-windows-terminal-clipboard-restore.md当前结论
wt-cmd通过wt-powershell通过notepad通过finalText,未再出现旧 clipboard 上屏因此,这个 PR 的技术定位应当是:
剩余风险
750ms仍然是启发式保护,不是目标确认式握手建议 PR 标题:
fix(windows): 延后剪贴板恢复并补齐插入回归覆盖