Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ucstzc5CCY22DABDnFrkXr
[Medium impact] The PR appears safe to merge; no actionable new issues were found. SummaryThe menu keeps its rows when guard results stay the same, avoiding lost clicks caused by needless row replacement.
Reviews (3) · Last reviewed commit: "Compare guard results by id, not by the ..." · Reviewed by Greptile |
The assertion matched the comparison's spelling, so moving the result assignments ahead of it would have passed while changed guards never refreshed the rows. Run the guard process's exit handler against a stand-in root instead: a batch that repeats the shown results keeps the rows, and a changed visibility, checked or disabled result rebuilds them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VxoFhvW3i63ay7Zsbdfi3i
|
The fix and the test look right to me. One cross-link: #15048 (dhh) moves the guard batch to run once at startup instead of per menu file, and #14993 appends rows in one batch. If #15048 lands, the window this closes may shrink or go away, so this is worth rebasing on top of it and checking whether the press-during-rebuild case still reproduces. |
The guards run in eight subshells side by side, so a batch reports the same results in a different order each time. Comparing the JSON strings saw that as a change and rebuilt the rows on every batch, which is the rebuild this pull request exists to avoid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed against current The bug is real on As first pushed, the change did not fix it on Pushed ed5e48c to this branch. It compares the three result maps by id (same ids, same values) rather than as strings, and adds two cases to Full suite ( No second opinion. The configured reviewer, Codex Medium, did not run: the day's review budget was spent. So this review is one model's (Claude Opus 5.5), and the classification is unsettled for the same reason. A review by the second model will be needed before this can be marked ready. Related: #14993 also changes how Waiting on the second opinion, then the maintainer. Nothing is needed from you. |
omacom/omarchy#14740 (comment) by omarchybot (2026-10-16) did what the item asked: it merged the branch onto quattro 51bfd1dba (after #15048), reproduced the press-across-guard-exit bug with a real pointer (0 of 10 clicks ran), found the first fix still failed there because parallel guards report results in another order, pushed ed5e48ce comparing the results by id (10 of 10, menu-test.sh 173 of 173) and said nothing is needed from the author. The PR is mergeable on current quattro; it waits on their second reviewer and the maintainer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015WSJYF8115GK3o1hEsCiCj
|
Followed up on the failed Check translation structure run for
GPT-6 High in Codex reviewed the CI data and branch. Opus 5.5 High found no concrete defect in the menu diff and agreed that the available CI evidence does not justify a source repair; reviewer independence is not guaranteed. This is waiting on the maintainer because the failed run cannot be diagnosed from the available GitHub data, and the branch still needs reconciliation with current |
What
A click on a menu row right after opening the menu is sometimes lost: nothing happens, and a second click works.
Opening the menu builds its rows and starts the guard batch (
evaluateGuards). When the batch exits,guardProc.onExitedcallsrebuildDisplay(), which clearsdisplayModeland recreates every row, even when nowhen:,checked:ordisabled:result changed. A press that lands on a row just before the rebuild loses itsMouseAreawith the row, soonClickednever fires.Now the rows are rebuilt only when one of the three result sets differs from the one the menu is showing. The first batch after the shell starts or a menu source changes still rebuilds, as before.
Why it shows up
The window is as long as the guard batch takes, so it depends on the machine: it was seen in a VM while the host was busy (a bare
bash -lc truetook about 0.3 s there) and went away when the host was idle.libinput debug-eventsshowed every press paired with its release, so the input reached the shell.Notes
JSON.stringifycompares the maps in the guard script's id order, which is stable for the same items; a different order only causes the rebuild that happens today.rebuildDisplay.Testing
test/shell.d/menu-test.shruns the guard process's exit handler from Menu.qml against a stand-in root: a batch that repeats the shown results keeps the rows, a changed visibility, checked or disabled result rebuilds them. It passes with the change and fails without it (menu keeps its rows when a guard batch repeats the results it shows), and also fails if the result assignments move above the comparison.menu-guards-test.shfails the same way with and without the change on the machine I ran it on (macOS, no pacman:guard prelude resolves packages as pacman does), so that one is unrelated.Menu.qml, minusdisabled:, which 4.0.4 does not have yet): a user menu extension added a root row whose action appends to a file and whosewhen:guard takes 3 s, which keeps the guard batch running for 3 s after each open. The menu was opened with Super+Space and the row was pressed 0.2 s after the menu layer mapped (Hyprland'sopenlayerevent) and released 4 s later, so the press spans the batch's exit:🤖 Generated with Claude Code