Repository navigation
Conversation
Co-authored-by: AnPod <AnPod@users.noreply.github.com>
f6f1003 to
c9305ee
Compare
The previous test grepped KeyboardPanel.qml for the warning text and for `root.open = false`, which passes with the fallback assignment commented out. This loads a real KeyboardPanel under quickshell with one owner whose close() throws and one whose close() works, and checks that the exception is contained, both panels close, the bar popout is released and both overlays unmap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com>
|
Reviewed and reproduced on a disposable Omarchy VM. The fix works: with a bar widget whose How it was checked. On the worker I made the clock panel's Pushed: 5e3ae8e, a runtime test in place of the grep test. The original Left for the maintainer, not a change requested of you. Second opinion: Codex Medium reviewed the original head and raised the vacuous test and the binding trade-off above; it reviewed the new test commit and found nothing. Its independence from this review is not guaranteed. Waiting on the maintainer, and on CI, which has not reported on this pull request. |
|
| } catch (e) { | ||
| console.warn("KeyboardPanel: owner close() threw, forcing close:", e) | ||
| } | ||
| root.open = false |
There was a problem hiding this comment.
| function runChecks() { | ||
| assertTrue(throwingPanel.open && workingPanel.open, "both panels start open") |
There was a problem hiding this comment.
Mapping is not tested The fixture checks
visible after closing but never establishes that either overlay was mapped first. Since visible follows the panel's logical state and card opacity, the test can pass without exercising the mapped overlay or the pointer-input failure it is meant to prevent.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Summary
Fixes #13382
A throwing plugin
close()left the panel overlay mapped and locked all pointer input.Change
close()throws so the overlay cannot stick mappedTest plan