Install/remove helpers hardcode --noconfirm, silently skipping confirmation
Bug report: install/remove helpers hardcode --noconfirm, silently skipping confirmation
What happened
Since the 4.0.2/4.0.3 upgrade, Omarchy's user-facing package install and
remove commands pass --noconfirm to pacman/yay, so no [Y/n] confirmation
is ever shown.
Repro: open the Omarchy menu → Install → Services → Spotify (or run
omarchy-pkg-add spotify / omarchy-pkg-remove). A floating terminal opens
and the package is installed/removed immediately without waiting for a
confirmation. Same behavior for the install/remove Package and AUR TUIs.
What was expected
An interactive confirmation prompt ([Y/n]) before any package is installed
or removed, as it behaved before 4.0.2.
Where it comes from
--noconfirm is hardcoded in the packaged user-facing helpers:
/usr/bin/omarchy-pkg-add—pacman -S --noconfirm --needed/usr/bin/omarchy-pkg-install—sudo pacman -S --noconfirm/usr/bin/omarchy-pkg-aur-add—yay -S --noconfirm --needed/usr/bin/omarchy-pkg-aur-install—yay -S --noconfirm/usr/bin/omarchy-pkg-remove—sudo pacman -Rns --noconfirm/usr/bin/omarchy-pkg-drop—sudo pacman -Rns --noconfirm/usr/bin/omarchy-remove-dev-env—sudo pacman -Rns --noconfirm(PHP/Symfony)
Maintenance/update flows (keyring, system upgrade, migrations, channel) also
use --noconfirm, which is correct there — the regression is only that the
interactive install/remove paths gained the flag.
Regression
omarchy-settings/omarchy4.0.1-1 -> 4.0.2-1on 2026-09-064.0.2-1 -> 4.0.3-1on 2026-09-10- Login binaries dated 2026-09-09 04:30 (build time)
System
- Omarchy
4.0.3-1, channelstable - Arch Linux
- Ryzen 7 2700, Radeon RX 540/550
Suggested fix
Drop --noconfirm from the seven helper commands listed above (keep it in the
automated update/migration paths). An local-workaround mirroring this fix is in
place on this machine via a pacman hook that strips the flag after each
omarchy upgrade.
Thanks for the detailed report. I traced each helper's history on quattro (at 9480d1b6a) and against the v4.0.1, v4.0.2 and v4.0.3 tags.
This is not a 4.0.2/4.0.3 regression. The behaviour you describe is accurate (the helpers pass --noconfirm, so pacman and yay never show their own [Y/n]), but it has been this way since August 2025, and none of these files changed in that respect between v4.0.1 and v4.0.3:
omarchy-pkg-installandomarchy-pkg-removehave had it since they were created (asomarchy-cmd-install/-uninstall, 2025-08-04, renamed in 59fefd34b).omarchy-pkg-aur-installsince 00cc8315a (2025-08-24),omarchy-pkg-addsince 3210ec44f andomarchy-pkg-dropsince 9e5b4fc87 (both 2025-08-31), andomarchy-pkg-aur-addsince it was added in 0d42f1baf (2026-01-06).- The only change to these files between v4.0.1 and v4.0.3 is the
updatedbarguments inomarchy-pkg-aur-install. - On
quattro,omarchy-remove-dev-envno longer passes the flag itself; it callsomarchy-pkg-drop.
It also looks deliberate rather than broken. In the interactive paths, the confirmation step is the menu choice or the fzf selection, and nothing is installed or removed when that selection is empty. omarchy-pkg-add and omarchy-pkg-drop are also called by the installer and by migrations, which run with stdin on /dev/null and can't answer a prompt. test/shell.d/pkg-drop-test.sh asserts the --noconfirm command line, and omarchy-install-gaming-steam has a comment relying on it. So removing the flag from all seven would break those unattended paths. Even in the TUIs, removing it alone wouldn't bring a prompt back: they run pacman/yay through xargs without -o, so pacman's stdin is /dev/null.
What you're asking for, a review of the resolved transaction (dependencies, recursive removals) before it runs, is a reasonable request. It's a change to how these commands behave, though, not a fix, so I haven't opened a pull request. Whether the interactive install/remove paths should show pacman's prompt is for the maintainer to decide.
I checked this by reading the source and git history. Nothing needed running, so no worker was used. Codex Medium reviewed it separately. It agreed and added the xargs stdin point, the test, and the installer/migration callers, all of which I checked against the source. Its independence from my reasoning isn't guaranteed.
Waiting on the maintainer.
Agree this is surprising if you expect a [Y/n] from the floating terminal. Related: #9227 (require interactive confirmation for AUR installs/updates) and #10557 (Hermes removal default-no test).
Is the --noconfirm hardcode intentional for menu-driven installs (prompt already happened in the menu), or should pkg helpers always confirm when run from a TTY? Happy to steer a fix once we know the intended policy.