Repository navigation
Description
Problem
When Zero needs user input during a tool call (e.g. a permission prompt), the only alert is what the notifier writes to the terminal. With the current default (mode and focusMode both empty in the resolver), no notification fires , the TUI just sits there. I have to know to hand-edit ~/.config/zero/config.json and add "notify": {"mode": "both", "focusMode": "unfocused"} before any alert happens.
The setting is also not discoverable from inside Zero: there is no /notify slash command, no zero config notify subcommand, and the only way to find the field is to read internal/notify/notify.go and internal/config/resolver.go and reconstruct the JSON shape.
This bit me on first run: I expected a bell or a desktop notification, got nothing, and assumed permission prompts were broken.
Requested behavior
- A first-run user who has no notify block in their config should get a sensible default that produces an alert, specifically, the resolver should fall back to mode=both, focusMode=unfocused when the block is missing or empty.
- A /notify slash command in the TUI (with a popup picker) to change the setting live, matching the existing /theme pattern in internal/tui/theme_select.go.
- A zero config notify CLI subcommand for headless and script use: print current, --mode <off|bell|notify|both> --focus <unfocused|always|focused> to set, --reset to clear.
- A config.SetNotify writer that uses the existing atomic-write helper at internal/config/writer.go:194 and validates against the same vocab the resolver uses (internal/config/resolver.go:116-129).
Why it belongs in Zero
The permission-prompt alert exists in the code (internal/notify/notify.go, wired in internal/tui/model.go:4641) but is gated behind an opt-in config that has no UI surface. That's a discoverability gap, not a missing feature, the work is wiring, not design.
Alternatives or workarounds considered
- Hand-editing ~/.config/zero/config.json — works, but not discoverable, and a non-trivial fraction of users will not find it.
- Termius users: BEL and OSC-9 do not work in this client. A cross-platform desktop notifier (osascript / notify-send) would, but is a much larger change. (The webhook sink at internal/notify/webhook_wire.go is the existing escape hatch; pushing to a phone is not a substitute for a local alert.)
I've
Examples, screenshots, or prior discussion
Repro from zero 0.2.0 on macOS 14, iTerm2, fresh ~/.config/zero/config.json:
- Run zero, ask it to do anything that needs a permission prompt.
- Switch focus to another app.
- No bell, no desktop notification. The TUI does not respond to a --notify=both flag at the top level, there is no such flag in 0.2.0.
Expected: a terminal bell and an iTerm2 notification.
Activity
gauravbhatia4601 commentedon Jul 7, 2026
This solution works with all the tests passed, and I have a local build that includes this feature. Given your rules that you are not accepting any PRs right now, I created the feature request rather PR.
anandh8x commentedon Jul 24, 2026
Since you already have this working locally, please feel free to open a PR with your implementation and link it to this issue. We’d be happy to review it.
gauravbhatia4601 commentedon Aug 29, 2026
I'll do it
feat(notify): make permission-prompt alerts on by default and discove…
feat(notify): make permission-prompt alerts on by default and discove…
feat(notify): make permission-prompt alerts on by default and discove…