Skip to content

Conversation

edouardp
Copy link

  • Implement OSC 9 notification support for iTerm2 and Ghostty terminals
  • Add ASCII bell fallback for other compatible terminals
  • Show 'Amazon Q needs your attention' for tool confirmations
  • Show 'Amazon Q has completed its work' when tasks finish
  • Add configurable notifications via chat.enableNotifications setting
  • Include comprehensive documentation covering supported terminals, notification events, configuration, and technical implementation

*Issue #2867

Description of changes:

Added notification so that QCLI can get the users attention when it requires attention in the background using OSC 9 with modern terminals.

e.g.:

Screenshot 2025-09-15 at 11 25 37 AM

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Implement OSC 9 notification support for iTerm2 and Ghostty terminals
- Add ASCII bell fallback for other compatible terminals
- Show 'Amazon Q needs your attention' for tool confirmations
- Show 'Amazon Q has completed its work' when tasks finish
- Add configurable notifications via chat.enableNotifications setting
- Include comprehensive documentation covering supported terminals,
  notification events, configuration, and technical implementation
@edouardp
Copy link
Author

This has considerable overlap with #2864 - but implements the functionality as a built-in part of QCLI, rather than as something the developer will add via a hook.

I believe that this was also implemented as via hooks initially in Claude Code, but was so popular that it was rolled directly into the code, instead of relying on devs managing hooks and shell scripts.

@edouardp
Copy link
Author

Also - I am not a rust developer, so this is all QCLIs work, with the idea and testing done by me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants