anomalyco / anomalyco/opencode
Session name is sometimes missing from notifications (notify plugin)
Open
@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(fromsession.data.title, default "Task") is used only in
thesession.idlehandler ("Ready for review"). Forsession.error
("Something went wrong"),permission.asked/updated("Waiting for you") and
question.asked("Question for you") the session name is not included at
all —messageis a hardcoded string.- On the Linux desktop fallback,
node-notifiermapssubtitle(which carries
sessionTitlein the idle handler) tocategory, whichnotify-senddoes
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.