omarchy.agents provider overrides in shell.json never take effect (settings always empty)
What happens
Provider visibility overrides in `~/.config/omarchy/shell.json` have no effect. Setting `"enabled": false` for a provider in the plugin`s `providers` block does not hide it from the bar/panel.
The documented mechanism (README: "An agent appears once it is enabled in settings") reads the override through `providerEnabled()`:
// Main.qml
function providerEnabled(id) {
if (!settings || !settings.providers || !settings.providers[id]) return true
return settings.providers[id].enabled !== false
}
But `Main.qml` declares `settings` as a constant empty object and never assigns it:
// Main.qml line 14
property var settings: ({})
Panel.qml passes `settings: root.settings` to Main, but Main`s own declaration shadows it with `({})`. So `settings.providers` is always undefined and `providerEnabled()` always returns true — every discovered agent is always shown regardless of the shell.json override.
Expected behavior
Setting `"enabled": false` for a provider id in `~/.config/omarchy/shell.json` under the plugin`s `providers` block should hide that provider from the bar and panel.
Steps to reproduce
- Add a providers override to `~/.config/omarchy/shell.json`:
"plugins": {
"omarchy.agents": {
"providers": {
"claude": { "enabled": false },
"openrouter": { "enabled": false }
}
}
}
- Restart the shell: `omarchy restart shell`
- Open the agents panel — claude and openrouter still appear (if they have recorded usage).
System
- Omarchy 4.0.0.r7314.g58858ae-1
- Qt 6 / Quickshell bar-widget
Note
This is a QML property-shadowing bug: the plugin`s Main item redeclares the `settings` property that Quickshell/Panel binds, so the bound value is discarded. Fix is to assign `settings: root.settings` (or remove the constant declaration) so the shell.json override reaches `providerEnabled()`.
I couldn't reproduce this on 4.5.0-rc2 with the override where the README puts it: in the widget's bar entry, not under the top-level plugins block.
Main's property var settings: ({}) is only a default. Panel.qml instantiates it as Main { settings: root.settings }, and the bar injects the entry's settings into the widget (Bar.qml injectProps, from BarModel.entrySettings(entry)), so the value does reach providerEnabled().
To check it, I ran:
omarchy bar set omarchy.agents providers '{"claude":{"enabled":false}}' --json
omarchy-shell omarchy.agents refresh
The updater then runs as:
omarchy-agent-usage-update --force --except claude
--except is built from the same settings.providers that providerEnabled() reads, so the override arrives.
The repro above puts providers under "plugins": { "omarchy.agents": … }, which the bar doesn't read for widget settings. Moving it into the omarchy.agents entry in your bar layout (or using omarchy bar set as above) should hide those providers.
I think the override is in a place the widget never reads, rather than settings being dead.
omarchy.agents is a bar widget (kinds: ["bar-widget"]), and a bar widget's settings sit inline on its entry in the bar layout. They aren't read from a plugins block. The bar copies every key of that entry except id (BarModel.entrySettings) and injects it as settings (Bar.qml injectProps(): target.settings = moduleSettings). That assignment replaces the ({}) default in Panel.qml, which passes it on to Main { settings: root.settings }. So the ({}) in Main.qml is only the default before the bar injects anything; it doesn't shadow the injected value.
So this should hide Claude and OpenRouter. Put it on the agents entry wherever it sits in your bar.layout arrays, in place of a bare "omarchy.agents" string:
{ "id": "omarchy.agents", "providers": { "claude": { "enabled": false }, "openrouter": { "enabled": false } } }
The manual's bar chapter describes the same rule for every widget ("its settings sit inline on that entry — there's no separate settings file and no config sub-object"). The agents README only says "enabled in settings", which is easy to read as plugins.omarchy.agents. A line there pointing at the layout entry would probably have prevented this.