Repository navigation
Releases
v1.3.0 — markdown, error notifications, auto-dismiss
- Markdown replies (
markdown, default on): the ✅ reply is sent via Bark'smarkdownparameter, keeping headings, lists and code blocks; a short plainbodyis 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.askedevent (carries the request id) instead of the question tool part
v1.2.1 — per-session state and subagent fixes
- 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.getinstead 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
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
Fixed
-
Installing the plugin pulled in ~30 packages (62M).
@opencode-ai/pluginwas 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 checksengines.opencode, which is unchanged.This also removes the
tomlandzodadvisories from installs, as neither package is installed anymore.
No behaviour changes.
v1.1.0 — notifications work again
Fixed
- No notifications were sent when installed from npm. opencode's npm loader takes the server entry from
exports["./server"]ormain; the package only declaredexports["."], 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.askhook. The plugin now listens for thepermission.askedevent. - 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
globaloutside a git repository.
Changed
- The
terminalsoption is removed (it only fed focus detection).
Update
rm -r ~/.cache/opencode/packages/@jack-yang/opencode-bark-notify*
# restart opencodev1.0.2 — Zero-token verification
Published with npm Trusted Publishing (OIDC). NPM_TOKEN secret removed from repo — zero long-lived credentials.
v1.0.1 — Switch to Trusted Publishing
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
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)