Fix opencode permission event name for 1.17.x
This commit is contained in:
parent
1cd43eb487
commit
5a08f180b2
|
|
@ -5,7 +5,7 @@ export default async ({ $ }) => {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
event: async ({ event }) => {
|
event: async ({ event }) => {
|
||||||
if (event.type === "permission.updated") {
|
if (event.type === "permission.asked") {
|
||||||
notify("opencode needs input", event.properties.title ?? event.properties.type)
|
notify("opencode needs input", event.properties.title ?? event.properties.type)
|
||||||
} else if (event.type === "session.idle") {
|
} else if (event.type === "session.idle") {
|
||||||
notify("opencode finished", "Agent is idle")
|
notify("opencode finished", "Agent is idle")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue