Repository navigation
[bugfix] canvas: preserve Escape ownership and repair nightly tests - #672
wangtiance merged 2 commits into
Conversation
## summary - Let inline editors and active reference drags handle Escape while chat is open, without intercepting IME composition. - Establish canvas geometry and await persisted reference state in browser checks; count view writes separately from reads. - Add reproduction screenshots and recordings for both interactions.
## summary - Create a private temporary directory for each browser profile run. - Keep profile names and update nightly artifact collection to find profiles inside the new directory. ## validation - Real pan and node samples passed with two readable CPU profiles. - Bash artifact collection found both profiles in the new directory. - Browser manifest and diff whitespace checks passed.
david6666666
left a comment
There was a problem hiding this comment.
WITHHOLD ffdc7a9 · no linked issue
两段录屏已下载、完整解码并抽看,连线预览的取消与聊天焦点切换有可见证据;文本截图呈现保留的 AB。录制时的两个 UI 实现文件和当前 head 一致,之后只改了 Nightly CPU profile 路径及对应测试脚本。当前 Release、CodeQL 和 DSH 已绿,仍缺这个 SHA 的 Linux Nightly:需要确认原先失败的画布用例与 profile 上传一起通过。
当前证据暂定 93/100(范围 3,正确性 3,验证 2,主张证据 3,简洁性 3;均满分 3)。Ran: 变更、前后版本文件范围、媒体及 GitHub 检查核对。Not run: 本地浏览器、Linux Nightly、真实 provider。
Dot,代表 @david6666666;非表决。
|
In response to the latest review: agreed that Linux Nightly evidence for the current head is still required. I have triggered the complete Nightly checks run on the fork's PR branch. Its verified head is The remaining evidence is that the previously failing canvas journeys pass on Linux and both CPU profiles are collected from the private temporary directory into the uploaded |
david6666666
left a comment
There was a problem hiding this comment.
WITHHOLD ffdc7a9 · no linked issue
Linux Nightly 补到了。这个 SHA 的 browser-extended 通过,perf-outputs 成功上传了 nightly-perf(我核对了上传记录,没独立解包)。但 browser-production 在 workspace_modes.mjs 等 filechooser 超时,整轮 Nightly 没通过。这里不把超时归因给 Escape 改动;下一步先用同一 production runner 和浏览器对照 main,判断是环境旧问题还是本分支回归。
当前证据暂定 93/100(范围 3,正确性 3,验证 2,主张证据 3,简洁性 3;均满分 3)。已核对 exact-head job 日志和上传结果,未重跑。
Dot,代表 @david6666666;非表决。
|
Follow-up to the latest review: I independently downloaded and unpacked the nightly-perf artifact. Both profiles parse successfully with nonempty nodes and samples:
The exact-head extended lane passed. The production failure is For the requested comparison, I have triggered Nightly on the exact main base, verified SHA The baseline run is in progress. Its production result is still needed before classifying the file-chooser timeout as a baseline issue, environment issue or PR regression; the changed Escape path has not been ruled out solely because the test file is unchanged. |
david6666666
left a comment
There was a problem hiding this comment.
WITHHOLD ffdc7a9 · no linked issue
补核了同一 fork、精确 main base 的对照 Nightly。其 production 日志也在 workspace_modes.mjs:789 等 filechooser 15 秒超时,和 PR 是同一失败点。这个失败不是 PR 独有,不能直接归因于 Escape 改动;也不代表 Nightly 已经通过。PR 的 extended 与 perf 产物有独立回执,但 production 仍失败。
维持当前证据暂定 93/100(范围 3,正确性 3,验证 2,主张证据 3,简洁性 3)。Ran: 两轮 hosted 日志和既有录像核对。Not run: 本地 production lane;未自行触发 CI。下一步单独修复键盘上传测试的 filechooser 稳定性,再验证本 PR 声称覆盖的 production 路径。
Dot,代表 @david6666666;非表决。
|
Thanks for checking the baseline. I have independently compared the two production logs:
Sources: exact-base production job, exact-head production job. For the current head, the entire extended lane passed, the perf lane passed, and both uploaded CPU profiles were independently unpacked and parsed as recorded above. Release checks, CodeQL and DSH are also green. Thus the original canvas failures and profile collection covered by this PR have exact-head Linux evidence, including the repaired production scenario. The remaining keyboard-upload failure is reproducible on the exact main base. It should be recorded and investigated as a separate follow-up; the evidence currently available does not identify it as a regression introduced here. The complete Nightly remains non-green, and I am not claiming otherwise. Could you reassess the WITHHOLD against these scoped results? If a gap remains in the behavior changed by this PR, please identify the specific scenario or evidence needed. Requiring the unrelated baseline failure to be fixed first would expand this PR's scope; the documented PR checks and Nightly advisory policy do not establish a requirement for every Nightly job to pass. |
david6666666
left a comment
There was a problem hiding this comment.
PASS ffdc7a9 · no linked issue
补读了两份 production 日志:这次修的 first_last_frame_connections.mjs 在精确 main 基线失败、在这个 head 通过;两个版本都在另外的 workspace_modes.mjs:789 等 filechooser 超时。算上当前 head 上通过的 extended、perf 和 required Release,这个 PR 的改动已有对应验证。键盘上传问题另追,本条不把整轮 Nightly 说成通过。
93/100(范围 3,正确性 3,验证 2,主张证据 3,简洁性 3)。Ran: 对照日志、已解码录屏和 CI。Not run: 本地生产测试或独立解包 perf。Dot,代表 @david6666666;非表决。Coordinator: 按仓库流程集成。
|
谢谢复核。合并后同一提交的 main Nightly 中,extended、perf 和发布门禁均通过。production 仍在 workspace_modes.mjs:789 等待 filechooser 超时,与合并前的精确基线一致。这里继续把这条键盘上传问题与本 PR 已验证的首尾帧修复分别记录。 |
Summary
Nightly run 47181192889 repeatedly failed canvas interaction checks. With chat open, staged references swallowed Escape before the inline text editor; chat keyboard focus also prevented cancellation of an active reference drag. This change lets the owning editor or active gesture handle Escape and preserves IME composition.
The supporting browser checks now establish canvas geometry, hit-test pan origins inside the actual canvas, await persisted connections and media-failure state, and count view writes separately from reads. Existing movement, persistence, undo/reload and rejection assertions remain in place.
Linked issue and labels
No issue applies; this addresses the linked Nightly failures. Labels:
type:bug,area:canvas.Validation
reference_drag_performance,canvas_selection_history,node_connections,multi_selection_references,composer_expansion,first_last_frame_connections,node_versions), pluscontext_menu_dismissal. The node-connection script covers nine combinations.first_last_frame_connections,composer_expansion,canvas_selection_historypassed.npm run build, 19 related Node tests (nodeReferencePorts,pendingCanvasReferences,selectionReferences,canvasPointerGesture), browser manifest/locale checks,npm run check:i18n, andgit diff --checkpassed.Evidence
Current candidate is
ffdc7a9389c5745f2ed1490a5235ce7c479a33f9, based on9f24de145389dab2186944d6fcc79acee5492dad.CodeQL follow-up
The original PR check reported
js/insecure-temporary-file(alert 94) because CPU profiles used predictable names directly under the OS temporary directory. Each run now creates a private directory withfs.mkdtemp; Nightly collects profiles from that directory. The actual pan/node sample and Bash collection of both CPU profiles passed on the updated source. Remote CodeQL still needs to confirm the alert is resolved. UI screenshots and recordings were captured from3a36fd76; both UI implementation files remain unchanged in the current candidate.Candidate review
9f24de145389dab2186944d6fcc79acee5492dad.ffdc7a9389c5745f2ed1490a5235ce7c479a33f9.中文总结
修复聊天区与画布之间的 Escape 事件冲突,使文本编辑能正常退出、参考连线能正常取消;修正聊天布局影响测试坐标、异步保存等待不足,以及历史版本测试将读取误计为写入的问题。原失败脚本、相关单测和三项生产构建检查均在本机通过,附实际截图与录屏,另已修复 CodeQL 报出的临时文件创建风险,使用独立安全临时目录并同步更新产物收集路径;完整 Linux CI 待运行。