Skip to content

notify: permission-prompt alert is silent by default and undiscoverable from the TUI #579

Closed

Description

@gauravbhatia4601

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:

  1. Run zero, ask it to do anything that needs a permission prompt.
  2. Switch focus to another app.
  3. 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

  1. added
    enhancement
    on Jul 7, 2026
  2. gauravbhatia4601 commented on Jul 7, 2026

    @gauravbhatia4601
    ContributorAuthor
    Image Image

    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.

  3. added
    issue-approved
    on Jul 24, 2026
  4. anandh8x commented on Jul 24, 2026

    @anandh8x
    Collaborator

    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.

  5. gauravbhatia4601 commented on Aug 29, 2026

    @gauravbhatia4601
    ContributorAuthor

    I'll do it

  6. added a commit that references this issue on Sep 15, 2026
    cf0a922
  7. added a commit that references this issue on Sep 23, 2026
    d24062f
  8. added a commit that references this issue on Oct 12, 2026
    7f8e5f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementissue-approved

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions