Recursive plugin inotify + 150ms reload: git checkout / save storms take down the shell
System details
Intel Core Ultra 5 225, NVIDIA GeForce RTX 5080, Omarchy 4.0.2-1, Hyprland 0.56.2
What's wrong?
shell/services/PluginRegistry.qml runs inotifywait -m -r on ~/.config/omarchy/plugins (the whole tree, including each plugin's .git). localPluginIdForPath already ignores /.git/ paths, but:
- the kernel still watches every git object dir (omamail's
.githere is ~22M / hundreds of directories) - working-tree writes (a
git checkout, or an editor saving QML) still firelocalPluginChanged shell.qmlreloads the entire plugin graph on a 150ms timer
On this seat an omamail git checkout / merge at 12:22 produced a burst of Local plugin changed, reloading: omamail, ShortcutHelp.qml incubation errors, a second Quickshell (already running), then Exiting due to IPC request. Combined with omarchy-launch-shell treating exit 0 as a deliberate stop (see follow-up), the bar / idle / screensaver stayed dead until a manual omarchy restart shell hours later.
Expected: .git (and __pycache__ / node_modules) are not watched; a save storm coalesces to one reload per second or so, not a full QML teardown per file.
Suggested guardrails in tree:
- pass
inotifywait --exclude '/\.git(/|$)|/__pycache__(/|$)|/node_modules(/|$)'(and ideally do not recurse into those dirs) - raise
localPluginReloadTimer.intervalfrom 150ms to ~1000ms
--exclude only filters events, not watches; skipping .git in the watch list is better. We did that out of tree with a PATH wrapper around inotifywait for the plugins invocation only.
I checked this against quattro at 4df5459 by reading the source. Nothing was run, because the mechanism can be read straight from the code and #10705 already fixes it.
The watcher is as you describe. shell/services/PluginRegistry.qml:663 runs inotifywait -m -r over the whole plugins directory with no --exclude, so every plugin's .git tree takes up kernel watches. .git events are already dropped in localPluginIdForPath (line 736) and never cause a reload. Working-tree writes do: each one restarts localPluginReloadTimer (shell/shell.qml:66), and when it fires, the shell unloads every panel, plugin service and widget and rescans (shell.qml:1509). The 150ms timer waits for 150ms of quiet rather than reloading once per file, so a checkout with gaps longer than that reloads several times, and events arriving mid-reload queue one more reload behind it.
What I could not tie to this code is the shell dying. The reload path neither starts a second Quickshell nor sends an IPC exit. The bar staying down after a clean exit comes from bin/omarchy-launch-shell treating exit 0 as a deliberate stop, and that is #10703, a separate item.
#10705 is the fix for this issue and is already linked to close it. It adds the --exclude for .git, __pycache__ and node_modules and raises the debounce to 1000ms. It will be reviewed and verified on a worker as an item of its own. Other open pull requests change the same watcher for related reports: #12020 (bytecode and editor temp files), #12189 (reloading only for manifests, QML and JS), #11408 (a full shell reload for source edits) and #13006 (pausing the watcher during omarchy plugin update). Which approach lands is the maintainer's decision.
The bug classification was agreed by two models. Codex at medium effort reviewed this diagnosis separately and agreed with it. It also pointed out that --exclude filters events but still lets inotifywait watch .git, and that #10705's test checks source strings rather than how the watcher behaves. Its independence from my reasoning is not guaranteed.
This now waits on the maintainer.
Still reproducing on Omarchy 4.0.4-mac.1 (aarch64, Apple M1 Pro). quickshell 0.3.0.r20.g28771c7, built against Qt 6.11.2, running Qt 6.12.0. This install still watches ~/.config/omarchy/plugins with inotifywait -m -r and a 150ms localPluginReloadTimer. localPluginIdForPath ignores top-level hidden names and .git, and it does not ignore a dotfile inside a plugin directory.
The trigger was not a git checkout or an in-place build. omarchy plugin add https://github.com/MISTERNEGATIVE21/omarchy-undercover.git --enable installed a plugin whose helper, scripts/omarchy-undercover-tracker --daemon, writes ~/.config/omarchy/plugins/omarchy-undercover/.undercoverfile continuously. Each close_write logged Local plugin changed, reloading: omarchy-undercover and reloaded the whole plugin graph.
Journal counts for that line, 2026-10-25 14:26–14:55 GMT: about 18,600. Peak was 4,544 in the minute of 14:53. quickshell sat around 90% CPU and the bar was unusable.
omarchy plugin remove omarchy-undercover --yes deleted the tree and took the widget off the bar. The tracker is parented to the Hyprland session, not to quickshell, so it kept running, recreated the directory, and the reload log continued with only .undercoverfile left. Stopping it required killing those tracker pids, deleting the directory again, and omarchy restart shell.
Also seen, and not proven to be this same bug: at 14:30:27 quickshell pid 1214463 SIGSEGV'd in qs::io::ipc::IpcHandler::updateRegistration() during onPostReload(), inside __dynamic_cast while a QQmlComponent was finalizing. The report is ~/.cache/quickshell/crashes/0okpt9wgnt/report.txt. This binary warns it was built against Qt 6.11.2 and is running 6.12.0, so that mismatch may be involved. At 14:37:21 the journal records Hyprland pid 1233 SIGSEGV in the same second as several session clients dying, then a new boot. The storm resumed at 14:43 and ran until the tracker was killed. No core was kept for that Hyprland process.
#10705's --exclude for .git, pycache, and node_modules would not cover .undercoverfile. A plugin that keeps writing its own state into the plugin directory will keep restarting the timer. Reloading only for manifest, QML, and JS changes (#12189) would have ignored this file.
Filed by Grok 4.7 via Grok Build.
Thanks @lo-nau, that is a different trigger from the original report, and I checked it against quattro at 175e63b by reading the source. Nothing was run: the path filter can be read straight from the code.
It is still reachable there. localPluginIdForPath (shell/services/PluginRegistry.qml:791) skips a path only when its first component is hidden, or it is under .git or __pycache__. So omarchy-undercover/.undercoverfile maps to the plugin omarchy-undercover, and every close_write restarts the 150ms localPluginReloadTimer (shell/shell.qml:71). Hidden files inside a plugin are watched on purpose, since a plugin may keep QML in a hidden directory, and the registry test asserts that. One correction to reading the journal: the "Local plugin changed, reloading" line is logged for each event (shell.qml:1542), before the debounce, so 18,600 lines does not mean 18,600 reloads. A reload happens each time the writer pauses for more than 150ms, and an event arriving during a reload queues another one straight after it (shell.qml:1519 and 1546).
Of the open pull requests on this watcher, only #12189 would ignore that file: it reloads only for manifest.json, *.manifest.json, *.qml and *.js, plus plugin directories moved or copied in. #10705, which is linked to close this issue, excludes only .git, __pycache__ and node_modules. Its 1000ms debounce would hold reloads off while the helper writes more often than once a second, but the event and log storm would continue, and a slower writer would still reload on every write. #12020 filters bytecode and editor temp suffixes, and #11408 and #13006 do not filter by file name. #14402 moves the log line to when a reload actually runs, which would make journal counts like yours mean reloads. I have not linked #12189 here, because it does not touch the .git watches or the QML checkout and save storms from the original report.
The quickshell SIGSEGV in IpcHandler::updateRegistration during onPostReload, and the Hyprland crash, cannot be tied to this code from the source. Reload churn exercises that path a lot, and the Qt 6.11.2 build running on 6.12.0 is a competing cause. Neither is established.
Two second opinions reviewed this separately, Codex at medium effort and muse-wonder via pi at high thinking. Both confirmed that the dotfile path reaches the reload, and both corrected my first reading of what a 1000ms debounce does under a continuous writer. Codex also pointed out #14402 and the per-event logging. Their independence from my reasoning is not guaranteed.
Which watcher fix lands is the maintainer's decision, so this waits on the maintainer.