Skip to content

fix(windows): 修复语音编辑打开面板后主窗口卡死 - #1425

Merged
H-Chris233 merged 5 commits into
Open-Less:betafrom
HKLHaoBin:fix/issue-1338-backend-hang
Nov 9, 2026
Merged

H-Chris233 merged 5 commits into
Open-Less:betafrom
HKLHaoBin:fix/issue-1338-backend-hang

Conversation

@HKLHaoBin

@HKLHaoBin HKLHaoBin commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

摘要

Fixes #1338。

修复 Windows 在设置中点击语音编辑会话「打开面板」后,主窗口依赖后端的操作停滞的问题。提出者已确认本次修复候选不再复现原问题;按确认结果移除本分支临时诊断,只保留修复和回归契约。

修复 / 新增 / 改进

  • Windows 的 voice_edit_window_open 改为异步 Tauri 命令,使同步 IPC 回调能在懒创建 WebView 前返回,避开 Tauri/WebView2 已知的同步回调重入死锁风险。
  • 保留非 Windows 原有同步路径、主窗口来源校验和原有显示调用;打开面板不自动启动录音、创建或提交编辑会话。
  • 补充 Windows 异步边界、权限检查、非 Windows 路径及源码提取边界的回归契约测试。
  • 清除本分支的 [Windows] 后端卡死 #1338 临时探针、诊断模块、专用 Cargo feature、日志导出改动、诊断测试和构建工作流改动;保留上游已有 [windows] 更新后使用中无响应,需重启恢复(日志静默中断,根因待定位) #1266 功能,未删除用户日志或历史诊断文件。

兼容

  • 不包含:快捷键逻辑、模型配置、权限放宽、会话提交规则、窗口参数、重试/延迟、发布流程及其他问题的修复。
  • 对现有用户 / 本地环境 / 构建流程的影响:仅 Windows 打开语音编辑面板命令改变调度边界;其他平台保留原行为,无配置迁移,无新增依赖。
  • 已合入本次获取的 beta(75a122e88e3440797559219f87e22ba44b5537b2),自动合并无冲突。同步前后的修复净差异逐字节相同;相对该 beta 仅 2 个文件。

测试计划

  • 提出者确认原设备原触发动作不再复现;这是用户报告的该场景验收,不外推到其他平台或负载。用户提供的确认日志已只读检查,未公开个人信息,普通日志不冒充运行关联诊断。
  • 带诊断修复提交 ed5cfc031487272f1a77c1fdd2c6605aaf3afc2e 的 fork Actions CI、桌面三平台和 Android 四 ABI 均成功。该证据不替代本 PR 清理后 head 的 CI。
  • 清理候选经过独立 review-diff-bugs,结论 no bug found;同步 beta 前后特性 diff 哈希一致。
  • 静态 git diff --check;[Windows] 后端卡死 #1338 诊断代码/feature/标签检索零匹配。没有运行本地测试、依赖安装、编译或打包。
  • 本 PR 准确 head 的自动 CI 全部通过;创建后监听各工作流并核验结果。
  • 命令:PR CI 中运行前端/契约测试与原生检查;回归文件 openless-all/app/scripts/voice-edit-open-dispatch-contract.test.mjs。源码契约测试不等于原生死锁复现测试。
  • 结果:原设备用户已确认;清理后的 PR CI 待执行。
  • 证据路径:此前修复候选 https://github.com/HKLHaoBin/openless/actions/runs/42504081545 、https://github.com/HKLHaoBin/openless/actions/runs/42504081514 、https://github.com/HKLHaoBin/openless/actions/runs/42504081350 。交付与复现说明见 [Windows] 后端卡死 #1338 (comment) 。

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T13:19:24.948560Z
We couldn’t complete this review. Comment @codex review to try again.
dd87dcc 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@H-Chris233
H-Chris233 merged commit aff704b into Open-Less:beta Nov 9, 2026
17 checks passed
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] 后端卡死

2 participants