Skip to content

Releases

v1.3.0 — markdown, error notifications, auto-dismiss

Choose a tag to compare

@yangwudong yangwudong released this 19 Nov 01:33
  • Markdown replies (markdown, default on): the ✅ reply is sent via Bark's markdown parameter, keeping headings, lists and code blocks; a short plain body is kept for older Bark versions
  • ❌ Error notifications: a session that ends in an error sends ❌ with the error message instead of ✅. User cancels are ignored; an error followed by a successful reply still ends in ✅
  • Auto-dismiss (autoDismiss, default on): 🔐 / ❓ notifications carry the request id; answering in opencode deletes them from the phone. Needs Background App Refresh for Bark
  • Questions now come from the question.asked event (carries the request id) instead of the question tool part

v1.2.1 — per-session state and subagent fixes

Choose a tag to compare

@yangwudong yangwudong released this 19 Nov 01:08
  • Subagent sessions no longer send a premature ✅ when they go idle; only the top-level session does
  • Last reply and session title are tracked per session, so parallel sessions no longer mix content
  • Permission / question notifications are titled with their own session
  • Session titles via client.session.get instead of scanning the first 50 sessions
  • Bark requests time out after 5s, so a hung server cannot stall event handling
  • CI: actions/checkout and setup-node v7 (Node 24)

v1.2.0 — configurable notification expiry

Choose a tag to compare

@yangwudong yangwudong released this 19 Nov 00:52

Adds the expireAfter option: auto-delete notifications after a set time via Bark's ttl parameter.

  • Formats: "5m", "30m", "1h", "24h", "2d", "90s", "1.5h"; a bare number means minutes
  • "permanent" / 0 / unset keeps notifications forever (previous behaviour)
  • Invalid values warn and fall back to permanent

Note: ttl only applies to pushes saved to Bark history (on by default).

v1.1.1 — no runtime dependencies

Choose a tag to compare

@yangwudong yangwudong released this 05 Nov 06:29

Fixed

  • Installing the plugin pulled in ~30 packages (62M). @opencode-ai/plugin was a peer dependency, so npm installed it with its whole dependency tree for every user, although the plugin only imports a type from it. It is now a dev dependency: an install is the plugin alone (~20K). opencode checks engines.opencode, which is unchanged.

    This also removes the toml and zod advisories from installs, as neither package is installed anymore.

No behaviour changes.

v1.1.0 — notifications work again

Choose a tag to compare

@yangwudong yangwudong released this 05 Nov 05:22

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

v1.0.2 — Zero-token verification

Choose a tag to compare

@yangwudong yangwudong released this 29 Jul 14:54

Published with npm Trusted Publishing (OIDC). NPM_TOKEN secret removed from repo — zero long-lived credentials.

v1.0.1 — Switch to Trusted Publishing

Choose a tag to compare

@yangwudong yangwudong released this 29 Jul 14:53

Switch from NPM_TOKEN to npm Trusted Publishing (OIDC).

No code changes — pipeline only. Using the same OIDC-based authentication as PyPI trusted publishers, no long-lived token required.

v1.0.0 — Focus-aware Bark notifications

Choose a tag to compare

@yangwudong yangwudong released this 29 Jul 14:31

Initial release.

Features

  • Focus-aware push notifications via Bark (suppress when terminal is frontmost)
  • Detailed content: agent's last message (up to 500 chars)
  • Category badges: ✅ Responded / 🔐 Wait for Permission / ❓ Input Needed
  • Session title in notification title
  • Configurable via plugin tuple or BARK_KEY env var
  • Supports self-hosted Bark servers
  • Zero dependencies (pure TypeScript, runs on Bun)