Skip to content

Windows: replies to thread/channel-mention notification toasts are silently lost (handleActivation never fires) #3465

Description

@jeanfbrito

Summary

On Windows, typing a reply into a thread or channel-mention notification toast (or its Action Center card) silently does nothing — the message is never sent. Replies to direct-message toasts work correctly. The toast dismisses on Enter exactly as it does on success, so the user believes the reply was sent.

Discovered during runtime validation of #3464 on a real Windows 10 VM.

Environment

Behavior

Toast type Reply outcome
Direct message ✅ posts correctly (live toast and Action Center)
Thread reply / channel mention (#room title, @user body) ❌ silently lost

Reproduced 4/4 attempts for the thread case; the DM case passed in every run of the same automated scenario.

Instrumented evidence

For the failing case, with CDP attached to the webview and the main process launched with stdout captured:

  1. The toast/Action Center card renders correctly with its reply input.
  2. The input is verified focused, the text is typed, Enter is pressed, the card dismisses.
  3. Notification.handleActivation callback (registered in src/notifications/main.ts) never fires — no type: 'reply' activation arrives.
  4. No IPC action reaches the webview (no NOTIFICATIONS_NOTIFICATION_REPLIED).
  5. No chat.sendMessage request leaves the app (verified via Network.requestWillBeSent).
  6. Neither of the drop-path warnings in handleNotificationActivation (main.ts:269, main.ts:277 — unparseable tag / unknown routing id) is emitted.

So the activation is lost before our handler is invoked at all — i.e. at the Electron/WinRT layer, not in our routing.

Not a regression from #3464

On 4.15.6 no reply of any type was ever delivered (the app dropped the notification instance when the toast auto-dismissed and never registered handleActivation). #3464 fixes DM replies, which is what exposes this deeper, pre-existing gap.

Next steps

  1. Minimal standalone Electron 42.5.0 repro: fire paired notifications differing only in title/body shape (DM-like vs #room + @mention) and log handleActivation — isolate which property correlates with the lost activation.
  2. If confirmed as an Electron-layer issue, report upstream (closest prior art: action and reply notification events never fire on non-MSIX Windows apps electron/electron#51147, fixed by #51286 — this looks like a sibling gap).
  3. Separately: the drop-path console.warn calls in handleNotificationActivation are invisible in packaged builds — switching them to the app logger would make future diagnosis far cheaper.

Context

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions