Skip to content

Add action buttons to notifications #6

@shanselman

Description

@shanselman

Goal

Add clickable buttons to toast notifications.

toasty "Build complete" --button "Open Folder" --button-action "explorer.exe ."

Toast Button XML

<actions>
  <action content="Open Folder" arguments="open-folder" />
  <action content="Dismiss" arguments="dismiss" activationType="system" />
</actions>

Use Cases

  • "Open Folder" → opens build output directory
  • "View Logs" → opens log file
  • "Retry" → re-runs command
  • "Copy" → copies output to clipboard

Challenges

Simple Start

Maybe just support:

  • --button-url "Open Docs" "https://..." → opens URL
  • --button-path "Open Folder" "C:\path" → opens folder

These work via protocol handlers that already exist.

@copilot explore toast action buttons for unpackaged desktop apps

Metadata

Metadata

Labels

wontfixThis will not be worked on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions