[feature request] notifications #147

Open
opened 2026-02-16 17:25:24 -05:00 by yindo · 6 comments
Owner

Originally created by @luuk00101 on GitHub (Jun 19, 2025).

Originally assigned to: @thdxr on GitHub.

Leaving it here, because it sounded really interesting - heard there were notifications upon the agent waiting for further input and/or finishing the task in Claude Code (and maybe Codex)

It's really not a priority, but sounded cool to have :)

Originally created by @luuk00101 on GitHub (Jun 19, 2025). Originally assigned to: @thdxr on GitHub. Leaving it here, because it sounded really interesting - heard there were notifications upon the agent waiting for further input and/or finishing the task in Claude Code (and maybe Codex) It's really not a priority, but sounded cool to have :)
Author
Owner

@adamdotdevin commented on GitHub (Jun 20, 2025):

@thdxr this will be on the TS side, lmk if you still want me taking this on or not

@adamdotdevin commented on GitHub (Jun 20, 2025): @thdxr this will be on the TS side, lmk if you still want me taking this on or not
Author
Owner

@tamirzb commented on GitHub (Jul 15, 2025):

This seems to already be available using the experimental.hook.session_completed config option? You can add a command there that sends a notification (e.g. notify-send on Linux).

But you guys put it under "experimental" and I'm not that sure what that means.

@tamirzb commented on GitHub (Jul 15, 2025): This seems to already be available using the `experimental.hook.session_completed` config option? You can add a command there that sends a notification (e.g. `notify-send` on Linux). But you guys put it under "experimental" and I'm not that sure what that means.
Author
Owner

@rohitsathish commented on GitHub (Sep 2, 2025):

@tamirzb could you expand on this? I can't seem to find this option anywhere?

@rohitsathish commented on GitHub (Sep 2, 2025): @tamirzb could you expand on this? I can't seem to find this option anywhere?
Author
Owner

@tamirzb commented on GitHub (Sep 3, 2025):

@rohitsathish They changed the config since I posted this. Although I believe these days it could be done using a plugin, the plugins page in the docs even gives a specific example about this.

@tamirzb commented on GitHub (Sep 3, 2025): @rohitsathish They changed the config since I posted this. Although I believe these days it could be done using a plugin, the plugins page in the docs even gives a specific example about this.
Author
Owner

@berenar commented on GitHub (Oct 27, 2025):

Yes! This can be done with a plugin. Here's the one I'm using: https://github.com/berenar/dotfiles/blob/main/opencode/.config/opencode/plugin/notification.ts
FYI: It only triggers if kitty (my terminal) is in the background

@berenar commented on GitHub (Oct 27, 2025): Yes! This can be done with a plugin. Here's the one I'm using: https://github.com/berenar/dotfiles/blob/main/opencode/.config/opencode/plugin/notification.ts FYI: It only triggers if kitty (my terminal) is in the background
Author
Owner

@TheHamkerCat commented on GitHub (Jan 28, 2026):

Most notification plugins only support macOS, and not linux (i tried to create one as well, and failed)

because if i understand it right, it's pretty hard to listen to focus-in/focus-out events via plugins, We need the focus-related code inside opencode itself, or opencode should expose some events to plugins for this

I'm talking about: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html

echo -ne '\e[?1004h' and echo -ne '\e[?1004l'

@TheHamkerCat commented on GitHub (Jan 28, 2026): Most notification plugins only support macOS, and not linux (i tried to create one as well, and failed) because if i understand it right, it's pretty hard to listen to focus-in/focus-out events via plugins, We need the focus-related code inside opencode itself, or opencode should expose some events to plugins for this I'm talking about: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html `echo -ne '\e[?1004h'` and `echo -ne '\e[?1004l'`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#147