Skip to content

macOS: add "command finished" notifications#10934

Merged
mitchellh merged 3 commits intoghostty-org:mainfrom
JosephMart:josephmart/macos-notify-cmd-finish
Feb 26, 2026
Merged

macOS: add "command finished" notifications#10934
mitchellh merged 3 commits intoghostty-org:mainfrom
JosephMart:josephmart/macos-notify-cmd-finish

Conversation

@JosephMart
Copy link
Contributor

@JosephMart JosephMart commented Feb 21, 2026

fixes #10840

Implement command finished notifications for MacOS. Building on the work of #8992

AI Tools Used

  • Cursor
  • Models
    • Opus 4.6
    • Composer 1.5

Comment on lines +1418 to +1425
if actions.contains(.bell) {
NotificationCenter.default.post(
name: .ghosttyBellDidRing,
object: surfaceView
)
}

if actions.contains(.notify) {
Copy link
Contributor Author

@JosephMart JosephMart Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anything to consider if notify and bell are enabled with bell-features = system,attention? Can hear both sounds playing.

Example config

bell-features = system,attention
notify-on-command-finish = always
notify-on-command-finish-action = notify, bell
notify-on-command-finish-after = 2s

@JosephMart JosephMart marked this pull request as ready for review February 21, 2026 23:18
@JosephMart JosephMart requested a review from a team as a code owner February 21, 2026 23:18
@tristan957 tristan957 added this to the 1.3.0 milestone Feb 26, 2026
@mitchellh mitchellh force-pushed the josephmart/macos-notify-cmd-finish branch from 9644d5c to f4ddddc Compare February 26, 2026 21:17
Copy link
Contributor

@mitchellh mitchellh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good. I made some stylistic changes and fixed the notification not showing up with focus.

@mitchellh mitchellh merged commit ca09c0e into ghostty-org:main Feb 26, 2026
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS: add "command finished" notifications

6 participants