Skip to content

Open long select menus and keep their rows and picks off command lines - #15774

Open
nocstah wants to merge 7 commits into
omacom:quattrofrom
nocstah:keep-menu-data-off-command-lines
Open

nocstah wants to merge 7 commits into
omacom:quattrofrom
nocstah:keep-menu-data-off-command-lines

Conversation

@nocstah

@nocstah nocstah commented Oct 17, 2026 •

Copy link
Copy Markdown

Fixes #15735

omarchy-menu-select put every row into the select payload, a single argument to perl and omarchy-shell, so a list past 128 KiB never opened the menu. The Transcode picker over a real ~/Pictures and ~/Videos fails that way. The same arguments, and the bash -c "printf '%s\n' <selection> > <file>" the menu wrote its result with, are readable by every user on the machine in /proc/<pid>/cmdline: the rows, the pick, and whatever is typed into omarchy-menu-input (more on #15735).

Six commits:

  • Write menu picks from inside the shell. finishRequest writes the selection and the done file with a blocking FileView instead of bash -c printf. It writes in place, so the selection file keeps the mode its caller gave it. The done file gets a newline because FileView creates no file for an empty write. resultProc and applySerial go: their only job was closing the menu once that process exited, and every caller closes it first.
  • Pass menu rows to the shell in a private file. omarchy-menu-select writes its rows as a JSON array to options in its private request directory and names that file as optionsFile in the payload. The rows reach jq on a pipe, since printf is a builtin. The menu reads the file with a fresh blocking FileView, the reader Handle large background collections without oversized IPC arguments #12819 uses for the image picker. Inline options keep working for other callers, and an optionsFile the shell can't read cancels the request instead of opening an empty menu. Rows piped in on stdin, omarchy-menu-file's included, now never appear on a command line; rows given as arguments stay on omarchy-menu-select's own.
  • Write no menu answer once its caller has gone. A caller that gives up before the menu finishes, because its summon timed out (omarchybot's review below hit that at 20,000 rows) or it was stopped, removes its files on the way out. With the flat mktemp files the callers used before this rebase, the shell then wrote the answer anyway, into a new 0644 file nobody removes, so the pick, or the text typed into an input prompt, stayed in /tmp for every user to read until reboot. The shell now writes neither file once the selection file is gone, short of a caller exiting in the instant between that check and the write. Both callers create it before they summon, as docs/menu.md now notes.
  • Keep answering menu callers that never create their selection file. The third commit took a missing selection file for a caller that gave up, so a caller that leaves creating the file to the shell would wait forever for a done file. Nothing in the tree calls the menu that way, but the test in Finish superseded menu-select requests so their waiters exit #7826 does, and a plugin could. The shell now notes at the summon whether the selection file exists, and skips the answer only when it did and has gone since. Every other caller is answered as before.
  • Let menu callers say they created their selection file. Greptile pointed out that the fourth commit's check ran only after the shell had read the rows. A caller whose summon timed out before the shell got to its request had removed the file by then, so the request passed for one from a caller that never creates it, and the answer went into a new 0644 file again. omarchy-menu-select and omarchy-menu-input now mark their payloads with selectionFileCreated: true. For a marked request the shell opens nothing when the file is already gone, and writes no answer once it has gone. Unmarked requests are answered as before. Commits three to five belong together, so squashing them on merge would read best.
  • Fold the menu transport tests into menu-test.sh. Greptile pointed out that AGENTS.md asks for the area's existing test file and no checks that restate the source. The transport checks now live in test/shell.d/menu-test.sh, which already covers both callers and their payloads, and the checks that matched Menu.qml's source text are gone. The stand-in shell runs and the real FileView fixture remain.

Rebased onto quattro at e279971. Both menu scripts keep quattro's jq builders and private request directories, with the rows in options inside that directory. This PR's "Append a select menu's rows in one call" is dropped: quattro now appends a select list in one call itself, as #13390 also proposed. The upstream payload check in menu-test.sh reads the rows from the options file. The rebase also brought in the keybindings menu, whose activateIndex branch still set applySerial; the first commit removes that write too, since picking a keybinding otherwise threw before the menu closed.

--on-change still appends the selection JSON to its command's arguments. Moving it to stdin changes a documented interface, so I left it for a separate change if you want it.

The hang omarchybot's Codex pass found, a waiting picker that another summon replaces never returning, is what #7826 fixes, and #9056 too. #7826 and this PR touch the same lines. Whichever lands second drops #7826's resultProc write queue, which in-process writes don't need, and keeps its two finishRequest(null) calls.

Validation (Omarchy 4.0.4-1, Quickshell 0.3.1, branch on quattro at bf9ee5c7, before the rebase)

  • The transport checks (now in test/shell.d/menu-test.sh) run omarchy-menu-select against a stand-in shell, with perl (jq since the rebase) and the stand-in logging every argument they get:
    • Large list: a 4,000-row list (176 KB as JSON) piped in returns its pick. The payload names a 0600 options file that holds every row, the file is removed afterwards, and no row reaches a logged command line.
    • Argument rows: rows with a glyph, tabs, a newline and Unicode, given as arguments, come through exactly.
    • Cancel: exits 1.
    • Input and the marker: omarchy-menu-input returns what was typed, and both scripts mark their payloads with selectionFileCreated.
    • Real FileView: an offscreen Quickshell fixture runs the shipped readOptionsFile, finishRequest, writeRequestFile and requestFileExists. It covers 20 fresh reads of 10,000 rows, a rewritten file, missing, malformed, non-list and empty files, picks and cancels into 0600 files, picks and cancels for a caller whose selection file is gone, which write nothing, and a pick for a caller that never created its selection file, which still arrives.
    • Regression: against untouched quattro, the large list fails with the original perl: Argument list too long.
  • In the real Hyprland session I started a scratch shell from the checkout, the way menu-open-budget-test.sh does, and drove it with wtype while its menu held keyboard focus:
    • Results: the branch opened a 4,000-row list piped into omarchy-menu-select, and typing 004000 then Enter returned that row. Enter on a two-row select and text typed into omarchy-menu-input came back too.
    • Command lines: a watcher scanned every /proc/*/cmdline throughout and followed the shell's and the caller's children as they forked, looking for a marker that only the rows, the pick and the typed text carried. It found nothing.
    • Control: on untouched quattro, the same run caught the rows in both perl calls and the typed text in bash -c printf '%s\n' '<marker>-typed' > …, and the 4,000-row list never opened.
    • Caller gone: I stopped the caller while its menu was open, then pressed Enter on a select, typed into an input prompt and pressed Enter, or closed the menu. This branch wrote nothing. Its previous head, 96e73a7, and quattro both wrote the pick and the typed text into new 0644 files. A caller still waiting got its pick as before. So did a caller that never created its selection file, which at 941fb86 never got a done file.
    • Late requests, answered over IPC with no keystrokes, at 9347b97:
      • A marked select or input whose selection file was removed before it arrived opened no menu and left no file. 8c6efa7 opened both and left a new 0644 done file.
      • A stopped caller left nothing behind, and a waiting caller got its cancel.
      • A caller that never created its selection file still got its done file.
  • Finish superseded menu-select requests so their waiters exit #7826: its test fails at 941fb86 even with its fix applied, because its fixture never creates the selection files it names. At 8c6efa7 and 9347b97 it passes with Finish superseded menu-select requests so their waiters exit #7826's two finishRequest(null) calls applied, without its write queue.
  • Suites (at 9347b97): ./test/cli, menu-test.sh and menu-open-budget-test.sh pass. ./test/shell fails 19 of 452 files here, the same 19 files with the same failing assertions as untouched quattro (19 of 451). They include runtime-smoke-test.sh, which counts 4 IPC handlers on this machine's 2 screens, plus screenrecording-test.sh and menu-plugin-test.sh. git diff --check and bash -n pass.

After the rebase (at 19972c5, on quattro at e279971): menu-test.sh (125 checks, the transport checks and the real FileView fixture among them) and menu-plugin-test.sh pass; ./test/cli passed at the first rebased head, d8dc135. Through the stand-in shell, the 4,000-row list still opens and no row reaches a logged command line, and the options file sits in a 0700 directory. omarchybot reproduced the original failure on quattro at a3bad0b, now as omarchy-shell: Argument list too long. The live-session runs above (wtype, the /proc watcher) were not repeated after the rebase.

🤖 Generated with Claude Code

@greptile-apps

greptile-apps Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

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

Summary

Moves select rows into a private file and writes menu answers directly from the shell.

  • Select menus load their rows from a private file.
  • Menu answers stay in caller files, and abandoned requests get no answer.

All four earlier, unnumbered findings are addressed: both callers send the marker, the remaining applySerial assignment is gone, the tests use the existing file, and the source-shape assertions were removed. No new actionable issues were found.

Diagram

sequenceDiagram
  participant Caller as Menu caller
  participant Files as Private request files
  participant Menu as Menu.qml
  Caller->>Files: Create selection file and write option rows
  Caller->>Menu: Summon with file paths and caller marker
  Menu->>Files: Read option rows
  Menu->>Files: Check selection file still exists
  Menu->>Files: Write answer, then done file
  Caller->>Files: Read answer and remove request directory
Loading

Reviews (8) · Last reviewed commit: "Clarify menu result transport and callba..." · Reviewed by Greptile

@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 96e73a7 against quattro; nothing found to change.

Reproduced on a worker built from the Omarchy ISO, with its shell running this branch:

  • On quattro, 4,000 rows piped into omarchy-menu-select fail with perl: Argument list too long (exit 126), as Menus with more than ~128 KiB of rows never open: omarchy-menu-select passes them as one argument #15735 describes.
  • On this branch the same list opens in the live shell, and typing 004000 then Enter returns that row. A two-row select, an omarchy-menu-input prompt and an Escape cancel (exit 1, no output) all round-trip too.
  • A watcher scanning every /proc/*/cmdline throughout those runs found no row, pick or typed text outside the callers' own arguments.

Suites on the worker: ./test/cli passes. Every menu* test under test/shell.d/, including the new menu-transport-test.sh with its real FileView fixture, passes. The full ./test/shell fails the same 8 assertions on this branch as on untouched quattro: logo and background rendering, the lock view's start-up budget, the Danish menu catalog, a pre_remove hook and the keepLoaded IPC fixture.

One limit to know about, not a blocker: on a 4-core worker, lists of up to 12,000 rows open within omarchy-shell's 2 s timeout. At 20,000 rows the summon times out, so omarchy-menu-select exits 2 while the menu still opens. On quattro these lists stop opening at about 3,300 rows, so this is a large improvement, and how to handle lists that big is a separate question.

Second opinion: Codex Medium reviewed the diff separately and found no defects. It checked the request lifecycle without resultProc, Quickshell 0.3.2's FileView read and write semantics, the perl -0 round-trip for empty, dashed, multi-line and invalid UTF-8 options, and the batched ListModel.append. It agreed with my reading, and its independence is not guaranteed. It also pointed out an issue that quattro already has and this branch does not change: a second summon while a picker is waiting replaces that picker's handshake files, and the first caller never returns.

Related: #12669 and #13018 fix #12665, which is about symlinked starting points, and only cap list size along the way. #12669's 120,000-byte guard in bin/omarchy-menu-select would conflict with this branch, and it would still refuse long lists, so whichever lands second needs that guard removed. #15518's new test stubs resultProc, which this branch removes.

This now waits on the maintainer.

@nocstah

nocstah commented Oct 18, 2026

Copy link
Copy Markdown
Author

Added a fourth commit, 941fb86. My own test runs had left picks in /tmp. When a caller gives up before its menu finishes, because the summon timed out (as at 20,000 rows above) or it was stopped, the shell still wrote the answer, into a new 0644 file that nothing removes. quattro does the same. The shell now writes nothing once the caller's selection file is gone. I checked it in a scratch shell with the caller stopped: Enter on a select, text typed into an input prompt, and closing the menu left nothing behind on this branch, while 96e73a7 and quattro left the pick and the typed text in new 0644 files.

The hang the Codex pass found, a waiting picker that another summon replaces never returning, is fixed in #15796, which builds on this branch.

#15518 merges cleanly with this branch. Its new test then needs four lines changed, to stub the in-shell writes instead of resultProc. Whichever lands second can carry that, and I have the change ready in case it's this one.

Posted by Claude Opus 5.5 via Claude Code.

@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge and removed 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

Re-reviewed the new commit, 941fb86, against quattro; nothing found to change.

Reproduced on a worker built from the Omarchy ISO, with its shell running each tree in turn. Two rows were piped into omarchy-menu-select, the caller was stopped while its menu was open, and then the menu was answered:

  • On quattro, and on this branch with Menu.qml put back to 96e73a7, Enter left the pick in a new 0644 file at the caller's removed selection path, and Escape left a new 0644 done file.
  • At 941fb86, neither left anything in /tmp. A caller still waiting got its pick back as before.

Both in-tree callers, omarchy-menu-select and omarchy-menu-input, create their selection file with mktemp before they summon, so none of them waits forever on a done file the shell now skips. The new fixture also shows that real FileView reads an existing empty file as present.

Suites on the worker at 941fb86: ./test/cli passes, as do menu-transport-test.sh, menu-test.sh and menu-open-budget-test.sh. The full ./test/shell fails 8 assertions, all of which quattro also fails on the same worker. quattro fails two more, both start-up timing budgets.

Second opinion: Codex Medium reviewed the commit over two rounds. It confirmed the caller audit and how FileView treats empty and missing files. It also pointed out the window your description already names, a caller exiting between the existence check and the write. It confirmed that Quickshell's FileView has no write mode that refuses to create a file, so that window can only be narrowed, not closed. On a second round it judged the window a limit to note rather than a blocker. It agreed with my reading, and its independence is not guaranteed.

Related: #7826, #9031 and #9056 deal with a waiting picker that never returns, which #15796 addresses. None of them makes the change in this commit.

This now waits on the maintainer.

@nocstah

nocstah commented Oct 18, 2026

Copy link
Copy Markdown
Author

Added a fifth commit, 8c6efa7, which fixes the fourth. The fourth commit took a missing selection file for a caller that gave up, so a caller that leaves creating the file to the shell would never get a done file. No in-tree caller works that way, but #7826's test does, and it failed at 941fb86 with #7826's fix applied. The shell now notes at the summon whether the selection file exists, and skips the answer only when it did and has gone since.

In a scratch shell at 8c6efa7, a caller that never created its selection file got its pick; at 941fb86 it never got a done file. The stopped-caller cases still leave nothing behind. #7826's test passes at 8c6efa7 with its two finishRequest(null) calls applied.

I've closed #15796, since #7826 made that change first.

Posted by Claude Opus 5.5 via Claude Code.

Comment thread shell/plugins/menu/Menu.qml Resolved
@nocstah

nocstah commented Oct 18, 2026

Copy link
Copy Markdown
Author

Added a sixth commit, 9347b97, for Greptile's point on 8c6efa7. The existence check ran after the shell had read the rows, so a caller whose summon timed out before the shell reached its request passed for one that never creates its selection file. The scripts now mark their payloads with selectionFileCreated: true. For a marked request, the shell opens nothing once the file is gone and writes no answer once it has gone. Unmarked requests, #7826's test fixture among them, behave as before.

Commits four to six belong together, so squashing them on merge would read best.

Posted by Claude Opus 5.5 via Claude Code.

@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge and removed 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

Re-reviewed the two new commits, 8c6efa7 and 9347b97, against quattro; nothing found to change.

Reproduced on a worker built from the Omarchy ISO, with its shell running each tree in turn and answered with real keystrokes:

  • At 9347b97, a marked select request whose selection file was already removed when it arrived opened no menu and left nothing in /tmp. With Menu.qml put back to 8c6efa7, the same request opened a menu, and Enter left the pick and the done file in new 0644 files.
  • At 9347b97, a caller stopped while its menu was open left nothing behind. On untouched quattro (0c93f61), the same run left a new file in /tmp.
  • At 9347b97, a waiting omarchy-menu-select got its pick, omarchy-menu-input returned what was typed, and an unmarked request whose caller never created its selection file still got its pick and done file.

Suites on the worker at 9347b97: ./test/cli passes. menu-transport-test.sh (17), menu-test.sh (164) and menu-open-budget-test.sh pass. The full ./test/shell fails 8 assertions, all of which quattro also fails on the same worker. quattro fails one more, the lock view's start-up budget.

Second opinion: Codex Medium reviewed the two commits and found no defects. It checked the request lifecycle when a marked request is rejected, replaced or cancelled, and every in-tree caller of the menu transport. It noted that openDmenu's new early return is covered only by source checks, not by the real FileView fixture, which is why the worker run above exercised it live. It agreed with my reading, and its independence is not guaranteed.

Related: #13390 makes the same change to rebuildDmenuDisplay as this PR's third commit, a single batched append. Whichever lands second drops its copy. #7826 and #15518 are as described in the earlier comments.

This now waits on the maintainer.

W3asd added a commit to W3asd/omarchy-quicknum that referenced this pull request Oct 31, 2026
Document the process-argument disclosure fixed in 3.0.1 and point to the
open Omarchy pull request omacom/omarchy#15774, which fixes the same code
in Omarchy's built-in menu. Docs only; no version bump.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Nov 18, 2026
@aholbreich

Copy link
Copy Markdown
Contributor

The 4,000-row repro still fails on cdd18b226, now at omarchy-shell rather than Perl. Your branch passes with a stub shell, but it conflicts in both menu scripts. Could you rebase?

@omarchybot

Copy link
Copy Markdown
Collaborator

Rechecked head 9347b97 against quattro at a3bad0b. The conflicts are in bin/omarchy-menu-select and bin/omarchy-menu-input, where quattro now uses jq and private request directories.

On a disposable Omarchy ISO worker, the 4,000-row reproduction fails on that base with omarchy-shell: Argument list too long and exit 2. A local merge candidate preserving the jq builders and private directories opens the same list and returns row 4,000. Restoring the base scripts and menu makes it fail again. The candidate also returned Unicode input, cancelled with exit 1 and no output, and left no request files after a caller was stopped.

./test/cli passed. The full shell suite recorded 4,757 passing checks and three failures: provision-owner-keyboard-test.sh, remote-session-service-test.sh and runtime-smoke-test.sh. Each also failed on the base on this worker; the remote-session failure involves capture ownership and was intermittent.

Codex High checked this pass. The Opus 5.5 High review command terminated without completing the guarded review; a primary report arrived afterward, but no completed panel result was recorded. A subsequent availability probe answered. The local merge candidate has therefore not been pushed, and this pull request's branch is unchanged. This waits on the maintainer because the conflict resolution still needs a completed second review before it can be delivered.

Before: the base fails to open the 4,000-row list; the menu region remains empty.

After: the unpushed local merge candidate opens the 4,000-row list in the same region; selecting row 4,000 was checked separately.

@nocstah
nocstah force-pushed the keep-menu-data-off-command-lines branch from 9347b97 to d8dc135 Compare November 25, 2026 11:39
@nocstah

nocstah commented Nov 25, 2026

Copy link
Copy Markdown
Author

Rebased onto quattro at e279971.

  • omarchy-menu-select and omarchy-menu-input keep quattro's jq builders and private request directory. The rows go to options in that directory, piped to jq so they stay off its command line, and the payload names it as optionsFile. Both scripts still mark selectionFileCreated: true.
  • Dropped "Append a select menu's rows in one call": quattro now appends the rows in one call itself, so the PR has five commits.
  • menu-test.sh's payload check reads the rows from the options file; menu-transport-test.sh checks the request directory is 0700 and logs jq's arguments in place of perl's.

menu-transport-test.sh, menu-test.sh, menu-plugin-test.sh and ./test/cli pass.

Comment thread shell/plugins/menu/Menu.qml Resolved
Comment thread test/shell.d/menu-transport-test.sh Resolved
Comment thread test/shell.d/menu-transport-test.sh Resolved
@nocstah
nocstah force-pushed the keep-menu-data-off-command-lines branch from d8dc135 to 19972c5 Compare November 25, 2026 12:04
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Nov 25, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Rechecked 19972c58 against quattro at e2799713; no changes pushed.

On a disposable Omarchy ISO worker running each tree, the 4,000-row list fails on the base with omarchy-shell: Argument list too long, opens on this head and returns row 4,000, then fails again when the base is restored. Unicode input, Escape cancellation, multi-select Apply and selecting Terminal through the keybindings menu also work. Marked requests whose caller has gone open nothing, stopped callers leave no recreated request files, and unmarked inline callers still receive their pick. A sampled /proc/*/cmdline watcher found no row, pick or typed-text marker in subprocess arguments, excluding the keyboard driver.

./test/cli passed. The full shell suite recorded 4,725 passing checks and three failures: the OEM logo and keepLoaded IPC assertions also fail on the base; the account test enters the installed Codex login and waits for authentication on both trees. That login was stopped on the head and bounded at 60 seconds on the base. Three test files reported skipped checks, covering hardware, translation availability and panel timing. No new test failure was found.

Checked by Codex High, with second opinions from Opus 5.5 High and muse-wonder via pi, thinking high. Both found no actionable defects; their independence is not guaranteed. Their requested live checks of the long-list result, legacy callers and keybinding dispatch are included above.

This waits on the maintainer to decide whether the caller-lifecycle hardening should stay with the long-list transport fix and how it should land alongside #7826. The before and after below show the same menu region; selecting row 4,000 was checked separately.

Before: the base fails to open the 4,000-row list, leaving the menu region empty.

After: head 19972c58 opens the same 4,000-row list.

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Nov 25, 2026
nocstah and others added 6 commits December 2, 2026 10:56
The select and input menus wrote the pick with bash -c "printf ... >
file", which put the chosen row, or the text typed into an input prompt,
on a command line that every user on the machine can read in
/proc/<pid>/cmdline. Write it, and the done file, with a blocking
FileView instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
omarchy-menu-select put every row into the select payload, a single
argument to perl and omarchy-shell. Linux refuses a single argument of
128 KiB or more, so a long list never opened the menu, and every user on
the machine could read the rows in /proc/<pid>/cmdline. Write them to a
mktemp file instead, name it as optionsFile in the payload, and read it
in the menu with a fresh blocking FileView. Inline options keep working,
and a file the shell cannot read cancels the request.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A caller that gives up before the menu finishes, because its summon
timed out or it was stopped, removes its selection file on the way out.
The shell then wrote the pick anyway, creating a new file at that path
with the default 0644 mode, so the pick stayed in /tmp, readable by
every user, until reboot. The bash -c printf it replaced did the same.
Write neither file once the selection file is gone; a waiting caller's
mktemp file is empty, and an empty file still loads. A request whose
rows cannot be read is answered the same way.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The previous commit took a missing selection file for a caller that
gave up, so a caller that leaves creating the file to the shell waited
forever for a done file that never came. Nothing in the tree calls the
menu that way, but the test in omacom#7826 does, and a plugin could. Note at
the summon whether the selection file exists, and skip the answer only
when it did and has gone since. A request whose rows cannot be read is
answered as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The previous commit noted at the summon whether the selection file
existed. A caller whose summon timed out before the shell got to the
request has removed it by then, so the request passed for one from a
caller that leaves creating the file to the shell, and the pick or
typed text went into a new 0644 file again. omarchy-menu-select and
omarchy-menu-input now say they created it, with selectionFileCreated
in the payload. For such a request the shell opens nothing when the
file is already gone and writes no answer once it has gone. Requests
without it are answered as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
menu-test.sh already covers omarchy-menu-select and omarchy-menu-input and
their payloads, so the transport checks belong there rather than in a file
of their own. The checks that matched Menu.qml's source text go: the real
FileView fixture and the stand-in shell runs check what they asserted by
behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nocstah
nocstah force-pushed the keep-menu-data-off-command-lines branch from 19972c5 to 08231d7 Compare December 2, 2026 04:03
Scope the privacy claim to the file handoff. The documented on-change callback continues to receive tentative selections on its command line.

Co-Authored-By: Codex High <noreply@openai.com>
Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Dec 2, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

I reproduced #15735 on a disposable Omarchy ISO worker. The 4,000-row menu fails on quattro at 9bc01e7 with Argument list too long, opens on 0b4b5cc and returns row 4,000, then fails again when the base is restored.

The CLI and focused menu suites passed, and the live menu returned Unicode input and cancelled with Escape. The full shell run recorded 5,682 passing checks, three skips and four failures. The same four assertions failed on the base, covering Antigravity launch arguments, audio panel mapping, the OEM logo and the keepLoaded IPC fixture.

Codex High checked this pass with Opus 5.5 High and muse-wonder via pi, thinking high. Their review caught an overbroad privacy claim in the docs. Commit 0b4b5cc clarifies that the file handoff keeps its result out of subprocess arguments and that the --on-change callback still receives selections as an argument. Both reviewers checked the revised wording against the code and agreed it was accurate. They could read this session’s transcript.

GitHub’s Tests and translation workflows await maintainer approval. The maintainer also has the scope of the caller-exit hardening and the overlap with #7826 to decide. The file checks run at request entry and before writing the result, so a caller can still time out while an exceptionally large list is opening.

Base menu region after the 4,000-row request failed

Head showing the 4,000-row menu before row 4,000 was selected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Menus with more than ~128 KiB of rows never open: omarchy-menu-select passes them as one argument

3 participants