You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Per provider" tray icon mode does not create per-provider tray icons on Windows #89
The Settings → Menu Bar → Tray icon mode → "Per provider" option is described as:
Single unified icon or one icon per enabled provider.
On the Windows/Tauri desktop shell, selecting Per provider does not create one OS tray icon per enabled provider. With two enabled providers, the user still sees a single tray icon (they reasonably expected two).
Actual behaviour
Per provider currently only changes the text labels in the tray/right-click menu — it lists each provider's status as a separate row. It has no effect on the number of OS tray icons.
Root cause (from source)
The Tauri backend creates exactly one tray icon and only ever updates it in place:
apps/desktop-tauri/src-tauri/src/tray_bridge.rs — a single TrayIconBuilder::with_id("codexbar-main") in setup(); all updates go through app.tray_by_id("codexbar-main") + set_icon.
The only place TrayIconMode::PerProvider is consumed is status_labels_for_settings() (menu labels). There is no code path that instantiates additional TrayIcons per provider.
This looks like a feature from the original macOS app (where multiple NSStatusItems are used) that wasn't ported to the Windows/Tauri shell.
Suggested resolution
Either:
Implement it — dynamically create/destroy one TrayIcon per enabled provider when tray_icon_mode == PerProvider (each with its own rendered icon, tooltip, and click handling), and tear them down when switching back to Single or when the provider set changes; or
Adjust the UI copy so the option no longer implies multiple OS icons on Windows (e.g., clarify that it controls the menu's per-provider status rows).
Environment
Win-CodexBar v0.33.3 (portable), Windows 11.
Filed alongside PR #88 (unrelated float-bar z-order fix), found while testing the same Menu Bar settings.
Closing as not planned for now. The Windows/Tauri shell intentionally ships one OS tray icon, and Per provider is treated as provider-level status/menu behavior rather than spawning multiple native tray icons. If we decide to change the UX, it should be a fresh scoped issue for either copy cleanup or a real multi-tray-icon implementation.
Activity
Finesssee commentedon Jun 17, 2026
Thank you for the report, I will look into this.
Finesssee commentedon Jun 22, 2026
Closing as not planned for now. The Windows/Tauri shell intentionally ships one OS tray icon, and Per provider is treated as provider-level status/menu behavior rather than spawning multiple native tray icons. If we decide to change the UX, it should be a fresh scoped issue for either copy cleanup or a real multi-tray-icon implementation.