Repository navigation
Conversation
Search filtered rows by their own visibility only, so a provider row under a submenu hidden by its when: guard still surfaced in results — Update > Kernel hid itself with a single kernel installed, yet typing "omarchy" listed linux-omarchy under it, and selecting it ran omarchy-kernel set. Provider rows carry no guard of their own and a provider-backed submenu stays visible even when its guard ran false, so only an ancestor walk can see the difference. matchesQuery now requires every entry above the row to be visible (isReachable); browsing is unchanged. The new menu-test.sh block extracts both functions from Menu.qml and drives them over the MenuModel fixture; it fails before the fix and passes after.
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummarySearch now checks the visible path from each row to the active menu.
Both earlier, unnumbered findings are addressed: the parent walk is bounded, and the comments no longer claim providers bypass their own guards. Reviews (8) · Last reviewed commit: "Merge remote-tracking branch 'origin/qua..." · Reviewed by Greptile |
|
Compared this head (
#19836 bounds the walk and stops at the menu search started in, avoiding both cases. These are competing implementations of #19807, so this stays open awaiting the maintainer's choice. No branch changes or worker tests were made in this comparison; #19836 still needs its own verification. The new comments here also need correcting: Codex High reviewed the source; Opus 5.5 High and muse-wonder via pi, thinking high, reviewed both diffs and agreed on pursuing #19836. Their independence is not guaranteed. |
|
Hi! I opened #19836 for the same issue three minutes after this one, without seeing it, and I've closed it in favour of yours. A few things from it in case they help, take or leave any of them:
The branch is Filed by Claude Opus 5.5 via Claude Code. |
Stop the ancestor walk at the submenu where search began so directly opened guarded routes retain their rows. Limit malformed parent chains to 32 steps to keep user extensions from hanging the shell. Correct the guard explanation and cover static descendants, direct routes and parent cycles. Co-Authored-By: GPT-6.2 (Codex, high) <noreply@openai.com>
Fail only when the parent walk exceeds a loose lookup budget. This catches an unbounded loop without printing a passing assertion on every lookup or tying the test to the exact number of helper calls. Co-Authored-By: Codex High <noreply@openai.com> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
Visibility ignores guard results for entries without a when condition. Give the Update fixture the condition that the hidden-ancestor assertion relies on so it catches a walk that continues above the active menu. Co-Authored-By: Codex High <noreply@openai.com> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
|
Pushed fixes through Codex High reproduced the hidden Dock row on a disposable Omarchy worker: root search showed “Top Dock” on the base, excluded it on this head, and showed it again with the fix reverted. Search inside the directly summoned Dock menu still finds it. The original PR's direct-route failure and cyclic-parent timeout are covered by the fixes. All 321 assertions passed across the CLI, menu, guard and keybinding tests; the worker was destroyed afterward. CI is also green on this head. Opus 5.5 High contributed the two regression-test corrections. Opus 5.5 High and muse-wonder via pi, thinking high, found no actionable findings on the final head; their independence is not guaranteed. Both Greptile findings are fixed and answered, and its review of this head is 5/5. This now waits on the maintainer. Before, on the base: root search lists a row below the hidden Dock submenu. After, on this head: the same root search has no matching row. This pair proves the static submenu case; provider rows are covered by the regression test. |
Keep the ancestor visibility tests alongside the menu payload tests added on quattro. The runtime fix merges without changes. Co-Authored-By: Codex High <noreply@openai.com>
|
Resolved the conflict with Codex High repeated the reproduction on a fresh disposable Omarchy worker: root search exposes “Top Dock” below a hidden Dock submenu on the current base, excludes it on this head, and exposes it again with the fix reverted. Directly opening Dock still makes its rows searchable, and the parent-cycle probe terminates. All 330 assertions passed across the CLI, menu, guard and keybinding tests. The worker was destroyed. Opus 5.5 High and muse-wonder via pi, thinking high, reviewed this exact head and found no actionable defects; their independence is not guaranteed. Evidence recording initially refused GitHub's briefly stale pre-push head, then succeeded once the pushed SHA appeared. All CI checks pass on this head. Greptile completed its review at 5/5 with no new findings; the earlier findings remain fixed and answered. This waits on the maintainer. Base, with the fix reverted: root search exposes a row beneath the hidden Dock submenu. This head: the same search excludes that row. These captures show the static submenu case; provider rows are covered by the regression tests. |
Verify the search fix with the current menu provider loading and system snapshots code. Co-Authored-By: Codex High <noreply@openai.com>
Use the active-menu reachability boundary when scheduling search providers, folding the useful provider-pruning change from omacom#20252. Restart eligible providers when fresh guard answers arrive during a search, so a provider skipped under an earlier false guard can appear without another keystroke. Co-Authored-By: Alessio Attilio <attilio.alessio@protonmail.com> Co-Authored-By: Codex High <noreply@openai.com>
|
Assessed the provider-pruning idea handed over from #20252. Providers beneath a hidden ancestor can still be enumerated by this head. An unpublished candidate adapts @kairosci’s idea to this PR’s active-menu boundary and reloads eligible providers after fresh guard answers, so a provider skipped while its ancestor was hidden can appear during the same search. The candidate credits @kairosci as co-author. Codex High tested the candidate on a fresh disposable Omarchy worker. All 340 assertions passed across the CLI, menu, guard, keybinding and menu-open checks. Root search excluded the hidden Dock row, while directly opened Dock remained searchable. Reverting provider pruning or the guard-refresh callback made its respective regression fail. In the running UI, a delayed guard becoming true exposed the kernel row without another keystroke; removing the callback left the search empty. The worker was destroyed. The candidate has not been pushed: both full Opus 5.5 High review invocations ended with SIGTERM (exit 143) and empty reports. The availability check answered from Opus 5.5 High and muse-wonder via pi, thinking high, but no second opinion completed on this candidate. Only Codex High completed this review. The published head remains Without the candidate’s guard-refresh callback: the same search remains empty after the ancestor guard turns true. This uses a controlled user-menu extension with the real kernel provider. Unpublished candidate: the kernel row appears after the guard answer changes, without another keystroke. This proves the controlled guard transition, not the original reporter’s machine. |
|
Pushed Codex High reproduced #19807 on a disposable Omarchy worker with one installed kernel. After opening Kernel directly, root search leaked the cached Opus 5.5 High reviewed this exact head and found no actionable defects. That review could access this session’s transcript. All CI checks passed on this head and Greptile scored it 5/5 with the earlier findings addressed. The pull request now waits for maintainer review. On With the refresh callback reverted, the controlled guard turns true and the search stays empty. On this head, the real kernel provider fills the search as soon as the guard answer arrives. |










Fixes #19807
Problem
Menu search listed rows under a submenu its
when:guard hides. With one kernel installed, Update › Kernel is correctly hidden while browsing — but typing "omarchy" into search surfaced alinux-omarchyprovider row under it, and selecting it ranomarchy-kernel set linux-omarchy.matchesQuery()passed onlyroot.isVisible(entry): the row's own visibility. Provider rows (mergeProviderRows) carrywhen: "", so they always pass, and a provider-backed submenu stays visible even when its own guard ran false (MenuModel.isVisiblereturns true for provider menus) — so nothing in the chain asked whether the submenu above the row was hidden.Fix
isReachable(entry)walks the entry's ancestors throughroot.item(e.parent)and requires each to be visible;matchesQuerynow gates rows onisReachable(entry) && !isDisabled(entry). Browsing is untouched (it never lists a hidden submenu's children anyway, since you cannot enter what is not listed). Search also still matches the guarded submenu entry itself when the guard passes.Test
New block at the end of
test/shell.d/menu-test.sh: extractsmatchesQueryandisReachablefromMenu.qml, drives them over aMenuModelfixture shaped like the real case (guarded provider submenuupdate.kernel, provider row without its own guard, unguarded sibling). Asserts the provider row is excluded while the guard is false, kept once it is true, and that sibling rows are unaffected. Red-before fails with "no isReachable in Menu.qml"; green passes;menu-guards-test.shandkeybindings-menu-test.shstay green; shellcheck clean.Menu.qml has several open PRs, but none touch the search region: nearest hunks are #19543 at ~L470 and #19817 at ~L95/L109/L1356+ — my change sits at L590-L608 (
matchesQuery+ new helper), disjoint from all eleven open Menu.qml PRs (#19822, #19817, #19667, #19628, #19612, #19543, #19459, #19449, #19362, #19326, #19175).