Menu ▾ ▴

#182 Windows: taskbar flash on new message (shared attention setting)

closed
nobody
2026-08-28
2026-07-22
Anonymous
No

Originally created by: kristofferR

Windows sibling of the Dock bounce in [#174] (Ref [#174]). Independent of the toast work; smallest issue of the set.

  • Shared setting attention_on_message (default off) instead of a per-OS name — identical semantics and gating on both platforms, only the mechanism differs. One row in the Settings notifications tab shown when IS_MAC || IS_WINDOWS (the row-gating pattern already exists), with a per-OS label ("Bounce the Dock icon…" / "Flash the taskbar…"). [#174] is amended to adopt the neutral name (neither has landed; no migration).
  • Trigger: in show_message_notification after mute/dedupe/rate-limit (inherits spam protection), message notifications only, and only when the main window reports !is_focused().
  • Mechanism: window.request_user_attention(Some(UserAttentionType::Informational)) — verified in tao 0.35: on Windows this is FlashWindowEx(FLASHW_TRAY, count=4), taskbar button only, highlight clears on focus. No new dependency. Harmless no-op while the window is hidden to tray (no taskbar button). Note: FlashWindowEx ignores Focus Assist — acceptable for an opt-in setting.
  • Testing: unit test the gating predicate; manual — flash only when unfocused and the setting is on; no flash for sync alerts; highlight clears on click.

Part of [#187].

Related

Tickets: #174
Tickets: #187
Tickets: #233

Discussion

  • Anonymous

    Anonymous - 2026-08-28

    Originally posted by: kristofferR

    Implemented in PR [#233] and manually verified on Windows 11 during PR [#247]. The opt-in taskbar flash fires for new messages while Carrier is unfocused and clears correctly when the app is activated. Closing as complete.

     

    Related

    Tickets: #233
    Tickets: #247

  • Anonymous

    Anonymous - 2026-08-28

    Ticket changed by: kristofferR

    • status: open --> closed
     

Log in to post a comment.