Fix tray icons that vanish, refuse clicks, or take the whole tray widget with them
All three defects verified. (1) shell/plugins/bar/widgets/Tray.qml TrayIcon binds visible: !trayIconRoot.symbolic and layer.enabled: trayIconRoot.symbolic on the same Image feeding a MultiEffect. Issue #7288 ("Tray icon vanishes when an app switches its IconName between symbolic and non-symbolic (fcitx5)") states the same root cause verbatim. (2) Issue #8111 is titled "Tray icons are unclickable: clicks fall through to the bar's gesture area and toggle transparency" and cites Tray.qml:814, which is exactly the bare MouseArea in the file. shell/Ui/WidgetButton.qml (parent of BarIconButton) does call bar.registerClickTarget/triggerPress, TrayItem does not, and Bar.qml has registerClickTarget (line 104), pressModuleClickTarget (784) with if (!root.pressModuleClickTarget(...)) mouse.accepted = false, and component CenterGestureArea: MouseArea instantiated as CenterGestureArea { anchors.fill: parent } whose onDoubleClicked calls root.toggleTransparency(). (3) Tray.qml line 213 is literally visible: pinnedItems.length > 0 || drawerCount > 0. debugBarGeometry() exists in Bar.qml and omarchy bar defaults is a real subcommand ("Restore the default bar and service widgets"). The defect is the jq recovery one-liner: config/omarchy/shell.json stores .bar.layout as an OBJECT of three arrays (left/center/right), so .bar.layout[]? yields arrays and select(.id == ...) errors with "Cannot index array with \"id\"". jq exits non-zero (the && saves the config from being clobbered by the empty redirect), so the step silently does nothing and the tray stays gone.
Once you own ~/.config/omarchy/shell.json there is no deep merge with Omarchy's defaults, and widgets added by later releases will never appear in your bar. Keep the backup shown above. omarchy bar defaults discards your entire bar layout, plugin placement and per-widget options, not just the tray entry.
Symptom
Three related failures in the Omarchy 4 top bar's system tray. (1) An app's icon (fcitx5, Signal, Dropbox, NordVPN, Cryptomator, udiskie) disappears mid-session and the slot stays blank. A shell restart brings it back until the next time the app changes its icon. (2) Left-clicking a tray icon does nothing and double-clicking it toggles the *whole bar's* background transparency instead. (3) After clicking Hide on your only tray icon, the entire tray widget disappears, including the chevron whose menu is the only way to unhide it, and omarchy-shell shell debugBarGeometry | grep tray reports 'width': 0, 'height': 0, 'visible': False.
Cause
Three separate defects in shell/plugins/bar/widgets/Tray.qml. (1) When an app flips its IconName between a -symbolic and a non-symbolic name, the Image's visible and layer.enabled are both bound to the same symbolic property and flip together. The layer is never populated, so MultiEffect samples an empty texture and the icon silently vanishes (issue #7288, and #8434 is the same shape). It works on first creation because nothing flips, which is why a restart looks like a fix. (2) TrayItem is a bare MouseArea and never calls registerClickTarget, unlike Ui/BarIconButton.qml, so pressModuleClickTarget finds no target, sets mouse.accepted = false, and the click propagates to CenterGestureArea, which despite its name is anchors.fill: parent across the entire bar and whose onDoubleClicked calls toggleTransparency() (issue #8111). (3) Tray.qml:213 gates the widget root on visible: pinnedItems.length > 0 || drawerCount > 0. Hidden items are in neither bucket, so hiding every reporting item makes the root invisible and the bar collapses the slot to width 0 (issue #7117). Separately, an app that only ever published an XEmbed tray icon has no StatusNotifierItem and will never appear on Wayland at all.
Fix
For "tray widget gone after hiding the last icon", use the supported command instead of hand-editing (the shell owns the in-memory config):
cp ~/.config/omarchy/shell.json ~/shell.json.bak
omarchy bar set omarchy.tray hidden '[]' --json
omarchy bar set omarchy.tray pinned '[]' --json
If you must edit the file (shell not running), the layout is an object of three arrays, so the path needs two levels of iteration:
jq '(.bar.layout[]?[]? | select(.id == "omarchy.tray")) |= (.hidden = [] | .pinned = []))' \
~/.config/omarchy/shell.json > /tmp/shell.json && mv /tmp/shell.json ~/.config/omarchy/shell.json
omarchy restart shell
(without the trailing paren typo: ... |= (.hidden = [] | .pinned = [])) should be ... |= (.hidden = [] | .pinned = [])). Everything else in the record (the D-Bus probes, omarchy restart shell, the Activate call, omarchy bar defaults) is correct as written.
Verify
omarchy-shell shell debugBarGeometry | grep tray reports a non-zero width and 'visible': True, the icon is drawn, and toggling the app's icon state (e.g. fcitx5-remote -c then fcitx5-remote -o) no longer blanks the slot.