Skip to content

Show closed menu labels in full - #15758

Open
shawnyeager wants to merge 7 commits into
omacom:quattrofrom
shawnyeager:fix/menu-fits-its-labels
Open

shawnyeager wants to merge 7 commits into
omacom:quattrofrom
shawnyeager:fix/menu-fits-its-labels

Conversation

@shawnyeager

Copy link
Copy Markdown
Contributor

Reboot to Boot Menu now fits on the System menu. Closed menus grow from 300px to at most 520px so their own labels stay whole, and search results and provider lists stay at 300px.

The old card cut that row to "Reboot to Boot Me…". Ellipsis keeps the shared verb and drops the destination, which in Finnish makes Reboot and Reboot to Boot Menu paint the same. The label text is unchanged. Font and screen-recording menus stay at the 520px width they already had.

In a scratch shell the System card is 303px and the row is unclipped. Language and Learn stay at 300px, and the screen-recording menu stays at 520px. test/cli and the menu shell test passed. Four shell tests that also fail on unmodified quattro were left as they are: the Danish menu catalog, the default-browser install, the Elsewhen cache migration, and the Omasnap screenshot command.

A fixed 300px card cuts "Reboot to Boot Menu" to "Reboot to Boot Me…".
Closed menus now grow to their widest label, up to the 520px cap the
font and screen-recording menus already use. Search and provider lists
stay at 300px.
@greptile-apps

greptile-apps Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable new issues were found.

Summary

Authored menus now grow to fit their labels, within the existing screen limit and a 520px cap.

  • Closed menus grow when their labels need more room.

The earlier fixed-list measurement concern is addressed: those lists return before scanning labels. Runtime tests and visual checks were not run here because Quickshell and Hyprland tools were unavailable.

Reviews (3) · Last reviewed commit: "Include Alt stand-in labels when fitting..." · Reviewed by Greptile

Comment thread shell/plugins/menu/Menu.qml Resolved
Search, provider lists, dmenu, and the fixed wide cards stay at a fixed width, so measuring every row on each rebuild was wasted work. (omacom#15758)
@greptile-apps

greptile-apps Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Want your agent to iterate on Greptile's feedback? Try greploops.

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 18, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at 7483775, and nothing needs changing.

The bug reproduces on a worker built from the Omarchy ISO, running the live shell. At the merge base the System card is 300px wide and the row reads "Reboot to Boot Me…". At this head the card is about 302px and the row reads "Reboot to Boot Menu" in full. The root menu, Language and a "boot" search stay at 300px. In search, that same row is still cut to "Reboot to Boot Me…", which matches what the description says it intends.

I checked labelSlotChrome() against the row delegate (card border and padding, reserved row border, the 8 + 36 + 6 lead and the 6 + 14 + 8 trail). The sum matches what the label actually gets. I also confirmed that every path that rebuilds the rows advances layoutSerial, so a closed menu is never shown at a stale width. ./test/cli passes. test/shell.d/menu-test.sh passes (164 tests). The full shell suite has 6 failures, the same 6 that fail at the merge base, so this adds none.

Codex Medium reviewed it separately as a second opinion and found no runtime defect. Its independence from my review is not guaranteed. It did point out that the new assertion in menu-test.sh only matches source text: if the onLabelFitRevisionChanged hook were removed, the test would still pass. That leaves it unable to catch the truncation coming back. It is not a blocker.

This is now waiting on the maintainer.

@omarchybot omarchybot removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Oct 20, 2026
omarchybot and others added 2 commits October 21, 2026 16:51
quattro renamed the Font menu from style.font to appearance.font and dropped the CJK glyph picker (omacom#15973), so the wide-card check now names appearance.font alone. The new toggle-pair test and this branch's label-width test both stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
quattro removed Reboot to Boot Menu (omacom#15795). Install > Gaming's RetroArch Game Launcher is a row it still clips at 300px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

This stopped merging cleanly with quattro, so I merged quattro into the branch and pushed it as 9428cfc. GitHub has not attached that push to this pull request yet: the branch on the fork is at 9428cfc, but the pull request still shows 7483775.

The conflict came from #15973. It renamed the Font menu from style.font to appearance.font and removed the CJK glyph picker (style.font.cjk). menuUsesWideCard() now names trigger.capture.screenrecord and appearance.font, the same two menus quattro gives the 520px card. The new label-width test sits beside the toggle-pair test quattro added. A second commit changes one code comment. That comment named "Reboot to Boot Menu", which #15795 has since removed from the System menu, and now names a row that still exists.

The bug is still there without that row. I tested on a worker built from the Omarchy ISO, running the live shell:

  • On quattro (087f73d), Install › Gaming is a 300px card and two rows are cut off: "Heroic (Epic Game…" and "RetroArch Game La…".
  • At 9428cfc the card is about 340px and both labels are whole. The root menu stays at 300px, and Appearance › Font keeps its 520px card.
  • With Menu.qml reverted to quattro's, the two rows are cut off again.

./test/cli passes, and test/shell.d/menu-test.sh passes with 199 tests. The full shell suite has 5 failures, the same 5 that fail on quattro, so this adds none.

Codex Medium reviewed the merge as a second opinion and found no defects. Its independence from my review is not guaranteed. It agreed the conflict resolution keeps both wide menus, that the problem is still real on quattro, and that rows swapped by the new toggle pairs still trigger a remeasure.

Once GitHub shows 9428cfc as the head, verified can be recorded against it. Until then, this is waiting on the maintainer.

omarchybot and others added 3 commits November 23, 2026 01:50
Keep the kernel picker at its existing wide width and follow quattro’s removal of source-text assertions in menu tests.

Co-Authored-By: GPT-6 (Codex) <noreply@openai.com>
Carry the iconless-row spacing and font-change measurement from omacom#18320 into the earlier fix. Bind the measured width to the font and row revision so an already-open card follows font changes. Exercise the real menu and label layout rather than matching its source text.

Co-Authored-By: Franco Ortiz <franqitto@gmail.com>
Co-Authored-By: GPT-6 (Codex) <noreply@openai.com>
The row delegate draws its alternate action’s label while Alt is held. Measure that label alongside the normal one so translated firmware actions stay whole without changing width while the key is pressed. The runtime regression exercises an alternate label after the font change and fails when only this measurement is reverted.

Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
Co-Authored-By: GPT-6 (Codex) <noreply@openai.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

Pushed c57ff55 with current quattro merged, the per-row icon spacing and font-change remeasurement from #18320 carried over with coauthorship credit to @Pakvothe, and the Alt-action label included in the width calculation so holding Alt does not resize the card.

I reproduced the clipping on a worker built from the Omarchy ISO. At the same JetBrains Mono font, the base's 300px Gaming card cuts off “Heroic (Epic Games)” and “RetroArch Game Launcher”; this head shows both whole in about 340px. In Croatian, holding Alt on the System menu cuts off “Ponovno pokretanje u BIOS” on base and shows it whole in about 360px on this head. I also checked an Arabic menu's shaping and right-to-left layout. The real-QML regression passes on the head and fails on base and with the fix reverted; reverting only the Alt-label measurement fails only that checkpoint.

./test/cli passes. The full shell suite ran 438 test files: the menu, menu-open-budget, menu-guards and menu-plugin checks pass; four files fail on both this head and quattro (ascii, branding-about-animation, provision-owner-keyboard, runtime-smoke), and six files contain skipped checks.

GPT-6 in Codex performed the implementation and worker checks; its effort setting is not exposed in this session. Opus 5.5 High reviewed this head and found no remaining code defect; it also identified the Alt-label case corrected here. muse-wonder via pi, thinking high reviewed the identical source tree before the final commit-metadata correction and found no remaining code defect. Independence from this session's review is not guaranteed.

Classification on c57ff55 is unsettled: I classified the reproduced clipping as bug, while deepseek-v4p1-flash returned enhancement. No new classification or verification labels were added. This waits on the maintainer to settle that classification.

Base quattro Tested head
Before: English Gaming labels are cut off After: English Gaming labels fit in full
Before: Croatian BIOS label is cut off with Alt held After: Croatian BIOS label fits with Alt held

@omarchybot omarchybot removed the bug Something isn't working label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants