Skip to content

v1.1.0 — notifications work again

Choose a tag to compare

@yangwudong yangwudong released this 05 Nov 05:22
· 7 commits to main since this release

Fixed

  • No notifications were sent when installed from npm. opencode's npm loader takes the server entry from exports["./server"] or main; the package only declared exports["."], so the plugin was skipped silently. Both are now declared. (#2, thanks @moegitree)
  • Notifications stopped on recent macOS. The focus check (osascript … first application whose frontmost is true) fails with -1728, and the error was swallowed. Focus detection is removed: every notification is sent.
  • Permission notifications never fired on opencode 1.19+, which no longer calls the permission.ask hook. The plugin now listens for the permission.asked event.
  • The body was sometimes your own prompt. User messages are text parts too; only the assistant's reply is sent now.
  • The title shows the folder name instead of global outside a git repository.

Changed

  • The terminals option is removed (it only fed focus detection).

Update

rm -r ~/.cache/opencode/packages/@jack-yang/opencode-bark-notify*
# restart opencode