@mohak34/opencode-notifier 0.1.22-beta.0 → 0.1.22-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4234,6 +4234,7 @@ var NotifierPlugin = async ({ client, directory }) => {
4234
4234
  if (event.type === "session.idle") {
4235
4235
  const sessionID = getSessionIDFromEvent(event);
4236
4236
  if (sessionID) {
4237
+ await new Promise((resolve) => setTimeout(resolve, 100));
4237
4238
  const errorTime = recentErrors.get(sessionID);
4238
4239
  if (errorTime && Date.now() - errorTime < 500) {
4239
4240
  recentErrors.delete(sessionID);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mohak34/opencode-notifier",
3
- "version": "0.1.22-beta.0",
3
+ "version": "0.1.22-beta.1",
4
4
  "description": "OpenCode plugin that sends system notifications and plays sounds when permission is needed, generation completes, or errors occur",
5
5
  "author": "mohak34",
6
6
  "license": "MIT",