Skip to content

Notifications

Mjolnir keeps session attention in the daemon and makes it available to the terminal dashboard and the Web UI. The Notifications pane and Inbox let you read and answer requests. Terminal alerts and browser push are separate ways to get your attention when you are elsewhere.

A session can be Failed, Unreachable, Needs input, Important or Unread, Working, or Idle. A lifecycle or harness failure needs attention; an unreachable worker may have stale state; an open question or permission request needs a response; and an unread completed reply may contain information to review. A working or idle session does not need an immediate response.

Mjolnir uses direct state where it has it: a pending form or permission request, a recorded failure, worker reachability, and unread transcript state. It does not ask Jev to infer those facts. Jev is used when the harness’s text leaves a judgment to make. For example, a hosted Jev assessment can identify a running turn that appears to be waiting for you, or mark a finished reply as important. If Jev is disabled, unavailable, or uncertain, Mjolnir keeps the ordinary state rather than guessing.

The prefix+o attention walk selects failures first, then unreachable sessions, then sessions waiting for input, then unread answers; recent activity orders sessions within each group. It crosses workspace tabs. Settings → Advanced → Session order → Priority is a separate list layout: it removes project headings and sorts live rows by descending attention level: failed, unreachable, waiting for input, important, unread, working, then idle. The badges and counts help you find the session; they do not change its state.

The terminal dashboard includes a Notifications pane alongside Sessions, Targets, and Profiles. Focus it to review notification cards and any open form. A card can show the pending request, a review’s current activity, the question in the transcript, or the latest agent reply, depending on what is available. Answer a form in the pane; its response goes to that session. Choose the session from a card to jump to its conversation. The pane also offers actions to dismiss eligible notifications (such as text-only questions, important replies, or failures), clear notifications for a workspace, or ignore notifications for one session. An open elicitation form or permission request cannot be dismissed; it remains visible until you answer it.

In the Web UI, open Inbox in the navigation or go to /#notifications. Select a notification to open its session; forms and replies are handled there. Dismissals are carried through the daemon. Read receipts belong to each client, so reading a completed answer in the terminal does not necessarily mark it read in the Web UI, or vice versa. An open elicitation form remains outstanding until you answer it; eligible text-only questions and alerts can be dismissed, and clearing an alert does not stop the session.

The two surfaces share session attention, but their alert settings are independent. The terminal’s [notify] settings affect terminal-client alerts. Web Push is controlled by each browser’s subscription. Per-session suppression is controlled at session creation or in session actions.

In the terminal dashboard, open Settings → Notifications. These values live in config.toml under [notify]:

[notify]
mode = "terminal" # "off", "terminal", or "system"
bell = true
delay_seconds = 2
title = true

mode = "terminal" is the default and uses the terminal bell. It works through SSH and terminal multiplexers that pass the bell through. mode = "system" uses the local operating system’s notification helper: osascript on macOS, notify-send on Linux, or a PowerShell toast on Windows. mode = "off" disables these terminal-client alerts. bell controls the bell independently, including whether it accompanies a system notification. delay_seconds is the number of seconds a session must remain in need of attention before an alert is emitted; the default delay filters out requests the agent answers itself. title independently controls the terminal window title’s waiting and unread counts, including when mode is off.

These alerts belong to the attached terminal client. They do not change the Notifications pane and Inbox, daemon attention, or browser push subscriptions.

Choose Go AFK from the command palette (or Go AFK in the Web Inbox) to set daemon-owned operator presence to away. Presence is persisted in the daemon database, so closing the terminal window or browser tab does not clear it. While you are away, an agent that asks a question or needs permission is asked to continue useful work if possible. If it repeats the same request, the request waits for you and appears in the AFK screen. Return from the AFK screen, turn AFK off in the Web Inbox, or run mj daemon afk off when you are back.

You can set Settings → Advanced → Auto-AFK after (minutes), or advanced.auto_afk_minutes in config.toml. Its default is 0, which disables automatic AFK. A positive value enters AFK after that many minutes without reported operator input. The terminal dashboard reports activity while open; in the Web UI, browser activity is reported while the Inbox view is open, so staying on another Web UI view does not reset the timer. To change daemon presence from a script, use mj daemon afk on, mj daemon afk off, or mj daemon afk status.

AFK is not a notification mute. Requests that wait for you still appear in the Inbox and Notifications pane. While you are away, the worker answers the first ACP question or permission request of each kind and asks the agent to continue, even when Jev is disabled. Jev is consulted on later questions to tell whether a new question differs from one already answered; with Jev disabled, later requests wait for you.

Web Push sends a browser or device notification when a session needs attention, even when the Web UI is not open. Enable it from the push banner in Inbox or Settings → Notifications. Each browser profile and device has its own subscription. In Settings, you can disable the current device’s subscription or send it a test notification. The status reports whether this browser has permission, an active subscription, and a working delivery route. Dismissing the banner only hides the offer; it does not subscribe or disable push.

Web Push requires a secure browser context, the browser Notifications and Push APIs, and an active service worker. Use HTTPS; plain HTTP on loopback may be considered secure by the browser only on that same device, so it will not make a remote phone connection secure. A Tailscale HTTPS certificate or an explicitly configured TLS certificate provides HTTPS for remote devices. On iOS, open the site in Safari, use Add to Home Screen, and enable notifications from the installed Web App.

A push notification opens the matching session in the Web UI. If the Inbox is already open, the click focuses it and navigates within the app so an unsent draft is preserved.

[notify] controls alerts from the terminal client. It does not turn Web Push on or off. Web Push enablement and browser permission are per device. mj new --ignore-notifications (also available as Start with notifications ignored when creating a session) suppresses notifications for that session; it does not suspend the session or prevent it from asking for input. The Web UI and terminal also let you dismiss a particular notification or mark completed replies read. Dismissals are synchronized through the daemon; read receipts are per client. Neither is equivalent to muting all future notifications.

The daemon creates and stores its VAPID signing private key in its local data directory. It stores each browser’s Web Push endpoint and encryption keys in its local database so it can deliver encrypted push messages. The encrypted payload contains a title, a short message body, a link to the session in the Web UI, and identifiers used to update the corresponding notification. The browser push service sees the destination endpoint and delivery metadata; the Web Push payload is encrypted for the browser subscription. Treat the daemon database and browser subscription as sensitive. The full trust boundaries and data flows are described in Security.

If alerts do not arrive:

  • For the terminal bell or desktop alert, check Settings → Notifications, the terminal or operating-system notification permissions, and whether a terminal multiplexer or remote terminal passes bell events. mode = "system" also requires the platform helper to be available.
  • For push, open Settings → Notifications → Push notifications and check the status. Use Send test to distinguish delivery from a missing session alert. If browser permission is denied, allow notifications in that browser’s site settings first.
  • Confirm that the page is loaded over HTTPS for remote devices. A local http://127.0.0.1 address is only usable by a browser on the controller; it does not provide secure remote access. See Web UI access for HTTPS and Tailscale setup.
  • On iOS, use the Home Screen Web App. A normal Safari tab does not provide the required push support.
  • Check Jev’s status if an ambiguous text-only request was not classified as attention. Explicit forms and recorded failures do not depend on Jev. See Sessions and Troubleshooting.

For the complete configuration schema, see Configuration; for how browser access is secured, see Web UI.