omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

4.5.0 upgrade silently breaks custom bar/menu configurations (API rewrite without migration path)

Open EdgeIQ-Labs opened this issue 3 weeks ago • 3 comments

What happened

After upgrading from 4.0.6-1 to 4.5.0-3, both the bar and menu rendered empty/invisible. No QML errors were thrown — the components simply failed silently during construction. The launcher menu opened with zero entries. Downgrading back to 4.0.6-1 restored functionality.

Environment

  • Previous version: omarchy 4.0.6-1 + omarchy-settings 4.0.6-1
  • Upgraded to: omarchy 4.5.0-3 + omarchy-settings 4.5.0-3
  • OS: Arch Linux (Omarchy)
  • Customizations: Hand-edited package files under /usr/share/omarchy/shell/plugins/ (Bar.qml, Menu.qml, weather/clock panel widgets) plus custom QML bar widgets registered via shell.json layout arrays.

Root cause analysis

The 4.5.0 update includes a full architectural rewrite of the bar system that is not backward-compatible:

  1. Bar.qml property contract changed: Three properties injected by the host shell (omarchyPath, barWidgetRegistry, barConfig) went from required property to optional property with fallback defaults. Custom bars using the old required contract fail silently when the host injection timing does not match the new expectations.

  2. Bar.qml grew from ~1,900 to ~3,200 lines with entirely new subsystems: glassy blur mode, popout card positioning, tray drag-and-drop, pluginRegistry, Commons.Color namespace (replacing direct Color.* references), centerBegin/centerEnd layout regions, etc. Custom configurations built against the 4.0.x structure are structurally incompatible.

  3. Menu.qml added new lifecycle guards: languageFile.reload(), menuCatalogFile.reload(), and a defaultMenuItems.length === 0 check in open(). Without these, the menu opens empty.

  4. Lua workspace API changed: State files generated under 4.5 use o.workspace_mode() which does not exist in 4.0.6 (and presumably vice versa). These state files persist across downgrade/upgrade, causing attempt to call nil value errors.

  5. No silent failure protection: When required properties are not satisfied or new subsystems are missing, the bar/menu do not log warnings — they just render nothing. This made diagnosis extremely difficult.

What I expected

Either backward compatibility for existing custom configurations, or a documented migration guide for the API changes. At minimum, a warning/error in the journal when the bar fails to construct.

Workaround

Downgrade both packages together:

sudo pacman -U --overwrite '*' /var/cache/pacman/pkg/omarchy-4.0.6-1-x86_64.pkg.tar.zst /var/cache/pacman/pkg/omarchy-settings-4.0.6-1-x86_64.pkg.tar.zst

Then remove any 4.5-generated state files:

rm -f ~/.local/state/omarchy/workspace-layouts/*.lua

Suggested fixes

  1. Migration documentation for the Bar.qml/Menu.qml API changes in release notes
  2. Graceful degradation — if required properties are missing or the component tree fails, log a visible error instead of rendering invisibly
  3. Version-gated state files — workspace layouts written by 4.5 should be tagged so 4.0.x ignores them (and vice versa)
  4. Stable customization API — consider exposing a plugin/hook layer for bar modifications rather than requiring users to hand-edit 3,200-line QML files that change fundamentally between versions

EdgeIQ-Labs avatar Nov 08 '26 19:11 EdgeIQ-Labs

Are there any updates on this yet? I would like to complete the update with having it crash my menu bar. Thanks!!

EdgeIQ-Labs avatar Nov 11 '26 14:11 EdgeIQ-Labs

FYi > Here is a current Snapshot of how my Menu bar currently looks -->

screenshot-2026-11-13_07-50-14

I would like to keep this layout, without having the 4.5 upgrade reset / add anything to the menu bar if possible. Ty.!

EdgeIQ-Labs avatar Nov 13 '26 12:11 EdgeIQ-Labs

Updates?

EdgeIQ-Labs avatar Nov 15 '26 13:11 EdgeIQ-Labs