anomalyco / anomalyco/opencode

Session name is sometimes missing from notifications (notify plugin)

Open
#40,970 1 comment 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Aug 7, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Summary

The bundled notify plugin (kdcokenny/opencode-notify) sometimes does not
include the session name in the desktop notification, so you can't tell which
session it belongs to.

Verified in the plugin source (~/.config/opencode/plugins/notify.ts)

  • sessionTitle (from session.data.title, default "Task") is used only in
    the session.idle handler ("Ready for review"). For session.error
    ("Something went wrong"), permission.asked/updated ("Waiting for you") and
    question.asked ("Question for you") the session name is not included at
    all — message is a hardcoded string.
  • On the Linux desktop fallback, node-notifier maps subtitle (which carries
    sessionTitle in the idle handler) to category, which notify-send does
    not render — so the session name is also lost there.

Expected

Include the session name in every notification (error, permission, question,
and ready/idle).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.