-
Notifications
You must be signed in to change notification settings - Fork 854
feat(notification): alert on turn completion and permission request #1356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(notification): alert on turn completion and permission request #1356
Conversation
f7b585a to
d35aa46
Compare
|
Hmm I've been using this since opening the PR and it seems like the sub-agent's session also sends a notification when it's finished, instead of just the main agent. I'll look into differentiating between them so the user isn't mistakenly notified when the sub-agent's done but the main agent isn't. |
918a165 to
25116c2
Compare
|
I'm aware of the new conflicts, will get them resolved sometime in the next few days |
25116c2 to
787c5dc
Compare
|
The Windows CI is very helpful 🙏 |
02674b6 to
aebc12e
Compare
|
@Amolith do you need an icon for this one? I'm looking forward to to getting this one in :) |
|
@meowgorithm yes, when you can! |
Add desktop notification system with delayed reminders: - Native notifications via beeep library - Agent completion notifications (cancelled on new user message) - Permission request notifications (cancelled on scroll/navigation/grant/deny) - Configurable via DisableNotifications option Implementation: - Notifier interface for scheduling delayed notifications with cancellation - Agent schedules completion notifications on turn end - Permission service schedules reminders when requesting permission - Permission dialog emits interaction events on first user action - Both services track and cancel scheduled notifications per session/tool call Resolves: charmbracelet#1224 Resolves: charmbracelet#390 References: charmbracelet#230 Co-authored-by: Crush <[email protected]>
Co-authored-by: Crush <[email protected]>
Prevent completion notifications from showing when users are actively interacting with the chat interface (typing, clicking, scrolling, opening dialogs). Co-Authored-By: Crush <[email protected]>
Windows caught the permission notifier publishing its event before the notification had been scheduled, so subscribers saw zero queued calls. Move the scheduling step ahead of publish to ensure the notifier is ready before any listener inspects it. Assisted-by: GPT-5 via Crush
aebc12e to
fe95055
Compare
Implement delayed and cancellable cross-platform desktop notifications using gen2brain/beeep. There's not yet an application icon as was requested in #230 (comment) but adding one once it exists, either before or after merge, should be simple based on beeep's docs.
I've tested and had it working on from-vanilla Arch and Debian 13, but I've not tested on any other system. I know all of the CoderAgent tests are failing, at least locally. How do I update those/resolve the issue?
Peek.2025-10-31.17-27.mp4
I found a couple potential issues in
internal/permission/permission.goandinternal/permission/permission_test.goand fixed them in individual commits (b35c245, f2288be, and f4ac82e) so they can be discarded if non-issues or unwanted or separated into individual PRs or something. The actual feature is 4ebd6fb and docs are d35aa46.CONTRIBUTING.md.created a discussion that was approved by a maintainer (for new features).talked with a maintainer in Discord and been assigned Notification mechanism for approvals #1224