Fix opencode permission event name for 1.17.x

This commit is contained in:
Joshua Yuen 2026-09-12 22:58:46 -04:00
parent 1cd43eb487
commit 5a08f180b2
Signed by: josh
GPG Key ID: 530DA0331EFE99F5
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ export default async ({ $ }) => {
return {
event: async ({ event }) => {
if (event.type === "permission.updated") {
if (event.type === "permission.asked") {
notify("opencode needs input", event.properties.title ?? event.properties.type)
} else if (event.type === "session.idle") {
notify("opencode finished", "Agent is idle")