You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
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.
@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.
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
Activity
adamdotdevin commentedon Jun 20, 2025
@thdxr this will be on the TS side, lmk if you still want me taking this on or not
tamirzb commentedon Jul 15, 2025
This seems to already be available using the
experimental.hook.session_completedconfig option? You can add a command there that sends a notification (e.g.notify-sendon Linux).But you guys put it under "experimental" and I'm not that sure what that means.
rohitsathish commentedon Sep 2, 2025
@tamirzb could you expand on this? I can't seem to find this option anywhere?
tamirzb commentedon 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.
berenar commentedon 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
TheHamkerCat commentedon 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'andecho -ne '\e[?1004l'github-actions commentedon Mar 30, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.