pull/15713/merge
Tamir Zahavi-Brunner 2026-04-08 05:35:20 +00:00 committed by GitHub
commit 440652668f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -225,6 +225,12 @@ export const NotificationPlugin = async ({ project, client, $, directory, worktr
event: async ({ event }) => {
// Send notification on session completion
if (event.type === "session.idle") {
// Filter out notifications from subagents
const result = await client.session.get({
path: { id: event.properties.sessionID },
})
if (result.error || result.data.parentID) return
await $`osascript -e 'display notification "Session completed!" with title "opencode"'`
}
},