Commit 08dc78c
committed
feat: add OPENCODE_NO_NOTIFY env var to suppress notifications
When opencode is invoked programmatically from an external harness
(build orchestrators, CI pipelines, automation tools), desktop
notifications are unhelpful and disruptive. Example: worktrunk
(wt step commit) calls opencode run to generate commit messages —
these sessions send "Ready for review" notifications that are pure
noise since no human is waiting for them.
Setting OPENCODE_NO_NOTIFY=1 or OPENCODE_NO_NOTIFY=true disables
all notification types by returning an empty plugin at init time.
This is opt-in — existing behavior is unchanged when the env var
is not set.1 parent 52f905d commit 08dc78c
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
489 | 494 | | |
490 | 495 | | |
491 | 496 | | |
| |||
0 commit comments