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
I want to configure notifications on my machine using the example snippet from the docs: https://opencode.ai/docs/plugins/#send-notifications. This seems to work for other people, but I don't get any notifications after the session completes as expected. I've confirmed the syntax is correct and I see the plugin being loaded in the logs: INFO 2025-11-27T22:42:08 +5ms service=plugin path=file:///home/oabdellatif/.config/opencode/plugin/notification.js loading plugin.
After some debugging, what seems to be happening is that the event subscription isn't being created. I added console.log() lines as follows:
I never see the second log line, which leads me to the above conclusion. After some more back and forth with Big Pickle and adding debug logs, it seems like Plugin.init() is either not being called or there's some caching issue.
OpenCode version
1.0.119
Steps to reproduce
Copy the plugin to ~/.config/opencode/plugin/notification.js
bug: plugins are loaded twice #3179: bug: plugins are loaded twice - Plugins loaded twice can cause event subscriptions to not fire as expected or behave unexpectedly
Activity
github-actions commentedon Nov 28, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
JunarisAlf commentedon Nov 28, 2025
sudo apt install libnotify-binnotify-send "OpenCode" "Task complete"JunarisAlf commentedon Nov 28, 2025
Ah, you are on wsl windows, first you need figured it out the cli command for the push notifications, try manually first, then apply it to plugin
rekram1-node commentedon Dec 2, 2025
I use this plugin and the session idle definitely fires for me: