Skip to content

"Per provider" tray icon mode does not create per-provider tray icons on Windows #89

Closed as not planned

Description

@Gosuj

Summary

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:

  1. 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
  2. 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.

Activity

  1. Finesssee commented on Jun 17, 2026

    @Finesssee
    Collaborator

    Thank you for the report, I will look into this.

  2. Finesssee commented on Jun 22, 2026

    @Finesssee
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions