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
Feature: optional persistent ("reminder") Windows toasts #153
On Windows and WSL the default toast disappears after a few seconds, so a permission request or a finished session is easy to miss while away from the desk.
Proposal
Add an opt-in windows.scenario: "default" | "reminder" option. The default keeps today's banner; "reminder" keeps the toast on screen until the user dismisses it.
Why it needs this implementation
node-notifier/SnoreToast cannot set the toast scenario. A reminder toast needs the WinRT toast API through Windows PowerShell, plus a background action (Dismiss) and a registered AppUserModelID, otherwise Windows ignores the scenario.
Side effects I want to agree on first
Reminder toasts write HKCU\Software\Classes\AppUserModelId\<appID> (display name OpenCode, icon when Windows can read the path). The plugin never removes that key.
Reminder toasts have no activation callback, so focusOnClick and onClickCommand do not run for them.
If PowerShell is missing, fails, or does not finish within two seconds, delivery falls back to the regular toast.
Scope
Notification channel on Windows/WSL only.
Defaults, macOS, Linux, sound, bell and commands are unchanged.
Verification plan
Windows and WSL, in Windows Terminal and a VS Code terminal, for both OpenCode 1 and 2: reminder stays until dismissed, Dismiss closes it, and disabling PowerShell still produces the regular toast.
Would you accept the PowerShell/WinRT path and the per-user registry write?
I am also open to naming the option outside the windows namespace if you prefer.
Actually, I have already implemented the relevant changes and am about to submit this PR.
I tested it on my Windows computer and did not find any known issues. It works well. :-)
Activity