Repository navigation
Merge upstream quattro (USB approval revert, faster menu and theme switches) - #71
cursor[bot] wants to merge 16 commits into
Conversation
* Revert "Merge pull request omacom#11874 from acrogenesis/feature/usb-device-authorization" This reverts commit 5cb3131, reversing changes made to 9d48fc4. * Undo USB and Thunderbolt device approval on machines that ran it * Verify boot rebuilds, recover Thunderbolt journals and prove USBGuard ownership in the removal migration * Read the boot partition from ESP_PATH and stop on failed Bolt reads in the removal migration * Recover Bolt's original mode from the setup journal in the removal migration
* Count hybrid GPUs from sysfs instead of lspci The menu's Hybrid GPU row runs omarchy-hw-hybrid-gpu on every open, and lspci took ~70-120ms of that while reading PCI config space, which also resumes a runtime-suspended dGPU. Read the cached class IDs from sysfs, as the omarchy-hw-nvidia helpers already do: 2ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Ask udev only about input devices Hyprland lists as mice Without a named touchpad, omarchy-hw-touchpad forked udevadm for every event device before checking whether Hyprland even had it as a mouse. On a desktop that is every keyboard, button and switch, on each menu open. Match the name first and ask udev only about the candidates: 25ms to 11ms here, with the same answers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Gate the Wi-Fi QR Code row on a cheap connected-Wi-Fi check The row ran omarchy-network-status on every menu open only to test for a wifi prefix, paying ~65ms for the nmcli and iw queries behind the SSID, signal and frequency it then threw away. omarchy-network-wifi-connected answers the same question -- wireless default-route device that NetworkManager has activated -- from sysfs and two busctl calls in ~3ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…om#15042) * Keep the menu's package snapshot until a transaction changes it Every guard batch rebuilt the installed-package set from pacman -Qq and -Qi, ~75ms of each menu open, though it only changes when a transaction does. Store it in $XDG_RUNTIME_DIR stamped with the local database directory's device, inode and change times, which every install, removal and upgrade moves, and rebuild on the first batch after they do. A build that overlapped a transaction or whose queries failed answers its own batch but is never stored. 75ms to 4ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Test that a transaction landing mid-read keeps the package set unstored Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Stamp the menu's package set from pacman.conf's DBPath A DBPath away from /var/lib/pacman left the stamp watching a directory no transaction touched, so the stored set never went stale. Ask pacman-conf for the database directory, and cache nothing when it cannot say. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Run the menu's guard readers and guards side by side What is left of the guard batch is mostly separate programs waiting on their own process start -- hardware probes, systemctl, xdg-settings, the screen recorder's status -- run one after another. Start every reader at once on its own process substitution, before the package set is built, and deal the guards into eight background subshells. Answers are unchanged (same 251 lines on the shipped menu); lines arrive in any order, which the menu's parser never relied on. ~400ms to ~160ms alone; ~195ms to ~55ms with the cheap helpers and cached package set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fail the guard batch when any guard group dies part way A group killed mid-run (a guard tripping a login shell's set -u) left its remaining rows unanswered while a bare wait still reported success, so the menu took the partial answers over its last complete ones. Wait for each group by pid and fail the batch if any did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…macom#15048) * Evaluate menu guards once both menu files have loaded at startup The default and user menu files load separately, and each load evaluated every guard, so startup ran the whole batch twice, the second queued behind the first. Wait until both have answered, loaded or missing; an open before then evaluates on its own as always. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Evaluate held menu guards when the default file fails after the user's Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…#15034) * Refresh the signing keyrings only when a newer version is out Every update reinstalled archlinux-keyring, rerunning its pacman-key populate, though new and revoked keys only reach the repositories as a new package version. --needed keeps the refresh and drops the repeat. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Read the keyring test's stderr to EOF before checking it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Send Hunk's settled palette nudge in the background Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Check VS Code-family extension registries instead of starting each editor Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Skip the Framework 16 keyboard write when its colour is unchanged Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Record the Framework 16 colour only after every keyboard write succeeds Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Drop the Framework 16 colour record and keep only the awk conversion qmk_hid exits 0 when no keyboard answers, so a recorded colour can't be trusted to describe the keyboard; a stale one would skip the write that fixes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…com#15047) * Clear the update indicator after an update instead of rechecking Once the dev checkout is fast-forwarded and the full -Syu succeeds, there is no Omarchy update left to show. omarchy-update-status still ran omarchy-update-available, which refetched the checkout and had checkupdates sync every database into a temp dir, only to clear the indicator. Clear it directly and retire the helper, whose only caller was the update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep omarchy-update-status for updates started by an older updater An update already running when this lands parsed its pipeline before the upgrade replaced it, and still calls omarchy-update-status after the packages are in. Keep it as a hidden helper that only clears the indicator, so that update finishes instead of stopping at a missing command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… variable (omacom#15040) * Sync the theme into tmux with one source-file instead of a client per variable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Pin the tmux theme test to its own socket Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Start the tmux theme test's panes under the scratch home Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…om#15038) * Take the screen recording preview while the recording finalizes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Hold the raw recording open for the preview while finalizing renames over it Addresses Codex review: a preview ffmpeg that opened its input after the rename read the trimmed file, and missed the frame on a very short recording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… header (omacom#15041) * Resolve alias and metadata-moved routes without reading every command header Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Match the full load's alias parsing and registration order on the router's fast path Addresses Codex review: tab-separated aliases were missed, and a C-locale sort could pick a different winner for colliding routes than the locale-sorted full load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Test that alias dispatch reads only candidate command headers Addresses Greptile review: the earlier tests passed through the full load too, so losing the fast path would have gone unnoticed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Skip the unreadable-header router check when running as root Addresses Greptile review: root reads through chmod 111, so the check failed for a correct router. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…omacom#15043) * Read the xkb layout table only when the keyboard widget shows a label Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Test the keyboard widget's table loading from a real keyboard reading Addresses Greptile review: the test set needsBriefs by hand, so losing the reading's flag or the change handler would have passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…acom#15037) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…macom#15035) * Skip the nightlight toggle's wait when hyprsunset is already running Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Wait on a hyprsunset that is still starting, not only one the toggle started Addresses Greptile review: one launched at login and toggled mid-boot could accept the temperature and then apply its boot default over it. The tests now simulate that default instead of only checking for a sleep. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… seconds (omacom#15033) * Resolve the audio volume sink on Pipewire changes instead of every 15 seconds Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep the audio volume sink current across in-flight reads and EasyEffects settings changes Addresses Codex review: a script read still running could overwrite the hardware fast path's answer, and an idle EasyEffects resolves through its settings file, which changes without a graph event. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Test the audio volume sink rerun through the read's exit Addresses Greptile review: the rerun test only checked the stale flag, so removing the rerun would still pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…5044) * Let keyboard panels build their content on first open KeyboardPanel takes an optional `content` component, loaded the first time the panel opens and kept afterwards. Panels that declare children directly keep building them eagerly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Build bar panel content lazily instead of at startup Every bar panel built its whole card on every monitor at startup, open or not. Move each KeyboardPanel's card into its lazy content slot, reach the few items root-level code needs through panel.loadedContent, and guard the code that runs while the panel is closed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Capture the whole network card in the portal preview The lazy content Loader adds a level between the content and the card. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Exercise keyboard panel open, close and reopen at runtime Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| @@ -462,12 +462,6 @@ scrub_factory_accounts() { | |||
| sanitize_factory_baseline() { | |||
There was a problem hiding this comment.
🔒 Agentic Security Review
Severity: MEDIUM
Factory reset still clones @factory and scrubs accounts, SSH keys, NetworkManager, Tailscale, and iwd, but this change removes the only steps that cleared inherited USB/Thunderbolt accessory trust: disabling usbguard.service on the staged root, and omarchy-thunderbolt-authorization-admin reset-root on both the staged clone and the retained @factory baseline.
Migration 1791769486 repairs the running system only. A machine installed while USB/Thunderbolt approval shipped, then updated to this revert and factory-reset, boots that frozen snapshot with leftover Bolt enrollments and, if USBGuard was enabled in the snapshot, the previous USB allowlist.
Impact: After an ownership-transfer factory reset, previously enrolled Thunderbolt/DMA devices can auto-authorize, and the prior USB allowlist can remain active. Residual risk is limited to factory snapshots from that window and requires physical accessory attachment.
Reviewed by Cursor Security Reviewer for commit ade590d. Configure here.
|
Superseded by #73, which is merged into quattro. |




Cherry-picks upstream omacom/omarchy
quattroonto this fork'squattro(522f891e). Upstream moved from9480d1b6to4c1b4cb3. 16 new first-parent commits (all non-merge) are applied oldest-first, one fork commit per upstream commit. No leftover sync PR was open.New since last check (2026-10-11 /
9480d1b6)USB and Thunderbolt approval is gone (omacom#15091)
The device-approval feature that landed in omacom#11874 is fully reverted. New installs no longer ship USBGuard policy, Bolt authorization, the watchers, or the Setup/Remove > Security rows for USB and Thunderbolt. Migration
1791769486undoes what a machine that already ran it left behind: it drops the user and system units, restores Bolt device policy and firmware boot allowlists from the saved journal (and retries if a Bolt read fails), puts Bolt's mode back, and removes the USB-at-boot kernel parameter only after the rebuilt boot entries check out. A USBGuard that predates Omarchy shipping it is left installed. A second run is a no-op.The menu opens faster
lspci, which was waking a suspended discrete GPU. The touchpad check asks udev only about devices Hyprland already lists as mice. The Wi-Fi QR row usesomarchy-network-wifi-connected(sysfs plus twobusctlcalls) instead of the full network status.$XDG_RUNTIME_DIR, stamped from pacman's database directory (including a customDBPath). A read that overlaps a transaction, or whose queries fail, answers that batch and is not stored.Theme switches stop waiting on the slow retints
extensions.json, skipping.obsoleteand missing directories) answers that. The editor is asked only when there is no registry. This fork still does not theme Cursor.qmk_hidexits 0 when no keyboard answers, so a recorded color cannot be trusted.source-file(Sync the theme into tmux with one source-file instead of a client per variable omacom/omarchy#15040). One script sets every variable for the server and each session, instead of a tmux client per variable.Updates, recordings, and launches
omarchy-shell -q omarchy.system-update clearclears it.omarchy-update-statusstays as a hidden helper that only clears, so an update already running under the old pipeline can still finish.archlinux-keyringis installed with--needed, so a repeat update does not rerunpacman-key --populate.--help(Probe the browser's private-window flag only for private launches omacom/omarchy#15037). That probe starts a Firefox-family binary. Only a--privatelaunch looks up--private-window,--inprivate, or--incognito.Bar panels build when they open (omacom#15044)
Every bar panel was building its whole card on every monitor at startup.
KeyboardPanelnow takes acontentcomponent, loaded the first time the panel opens and kept after that. Panels that declare children directly stay eager. Root-level code reaches items throughpanel.loadedContentand skips work while the panel is closed.Fork-only lines kept
shell.qmlstill assignsFaceChrome.pluginRegistryand still routes authentication services throughAuthServiceStore.omarchy-theme-set-vscodestill does not theme Cursor. The extension-registry check applies to VS Code, Insiders, and VSCodium.omarchy-powerprofiles-setstill writesActiveProfilethroughbusctl.Fork delta check
git diff --name-onlyvs upstream4c1b4cb3is still 157 files, the same set asquattrovs9480d1b6.Tests
./test/clipasses, including the alias fast path, the Hunk background nudge, and VS Code theme metadata.No visual check. There is no compositor in the cloud sandbox. The lazy keyboard-panel runtime check skips for that reason.