Skip to content

Alerts: still send when a window in use leaves the question unanswered for a few minutes (configurable) #4201

Done

Description

@antscript

Problem

Since #751, no device gets an alert while any window of the app is visible and focused (inUse in server/push.ts; pageInUse() in src/lib/presence.ts is visibilityState === "visible" && document.hasFocus()). That is right while I am at that screen, but a focused window does not mean anyone is there. I keep Ovis in front on my Mac and walk away with my phone: an agent then waits on a permission prompt and the phone stays silent, because the Mac window still counts as in use. Nothing tells me until I am back at the desk.

Seen on 0.5.5 (herdr plugin, runtime herdr-core 0.1.20, macOS server, iPhone app): a Claude Code permission prompt blocked a pane at 13:33:04; its alert was due at 13:33:14 and was dropped because a window was in use. A test push from the alert settings arrives fine, so delivery itself works.

Proposal

Let a window in use hold an alert back for a while, not for good: when an alert is due and a window is in use, wait until a set time after the change (5 minutes, say). If the pane is still in that state then (the question unanswered, no next prompt after a finish), send it as if no window were in use. A status change within that time calls it off, as it does today. With no window in use nothing changes.

The wait could be a choice next to the other alert settings, for example "While a window is open: don't alert (today) / alert if still unanswered after 1, 2, 5 or 10 minutes", so the current behaviour can stay the default.

Another way to the same effect: count a window as in use only while it is focused and has had input (pointer, key, touch, scroll) within that same time, so a window left in front stops holding alerts back.

Where

Phone, installed app and alerts

Where it exists today

None of the coding-agent apps I use has a rule across devices like this. Chat apps do:

  • Slack, Preferences → Notifications → "When I'm not active on desktop": mobile notifications go out by default one minute after the desktop screen locks or 10 minutes after Slack sees no cursor activity, with the delay selectable (or "immediately, even if I'm active").
  • Discord, "Push Notification Inactive Timeout": pushes go to the phone once the desktop client has been idle for the chosen time (1 minute at least).

Workarounds and alternatives

Today I have to put every Ovis window (the Mac app and any browser tab) in the background before I leave the desk, or the question goes unnoticed. Muting a pane does the opposite of what is needed here.

Activity

  1. added a commit that references this issue on Nov 27, 2026
    caf5506
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions