Commit 8bc0f82
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 8bc0f82
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
108 | 118 | | |
109 | 119 | | |
110 | 120 | | |
| |||
122 | 132 | | |
123 | 133 | | |
124 | 134 | | |
125 | | - | |
| 135 | + | |
126 | 136 | | |
127 | 137 | | |
128 | 138 | | |
| |||
| 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