Files
ElyOffice/tasks/reviews/D-03-r2.md
T
2026-10-10 01:08:36 -04:00

4 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FAIL
apps/ely-doc/src/docs.rs:197:`watch_dialogs` 的快照遗漏共享外壳的 `core.dialog`,关闭询问等外壳对话框打开、取消后,旧读取的请求编号仍有效;`refs.rs:93` 只检查返回当时的外壳对话框,迟到请求会重新弹框并抢走焦点。具体复现:在已编辑且输入已落地的文档中暂停 worker,点击 Insert → Bookmark…,按 Cmd+W 打开“Save changes to Untitled 1?”,点击 Cancel,再恢复 worker;取消后已回到文档,随后旧的 Insert Bookmark 对话框弹出。真实 macOS 窗口连续两次复现,AX 证据见 `/tmp/d03-r2-native-shell-open-1.log`、`/tmp/d03-r2-native-shell-cancel-1.log`、`/tmp/d03-r2-native-shell-return-1.log`,第二次为相同名称的 `-2.log`。上一轮超链接保留及关闭后保持关闭的场景均实测通过;本轮自行构建 worker 和 ElyDoc,`cargo test -p ely-doc -- --test-threads=1` 的 53 项测试全部通过,现有回归测试缺少外壳对话框的取消场景。修复方向:将共享外壳对话框的状态变化纳入请求失效计数,并补充上述回归测试。