You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Opt-in mid-turn user notification from a running thread (send_to_user({ notify: true }) or notify_user)
#43762
When a long-running coordinator thread is managing several delegated tasks or waiting on background work, there are moments mid-run where the agent wants to alert the user on mobile/desktop without stopping its current turn (and without blocking on ask_question).
Today:
send_to_user renders Markdown inline mid-turn, which is great for keeping the user informed, but it does not trigger mobile push (AgentAwarenessRelay) or desktop notifications (ThreadNotificationCoordinator).
ask_question triggers "Waiting for input", which pauses the calling thread until answered.
Spawning a separate top-level thread just to fire a notification adds extra threads, extra turns, and loses the 1-tap deep link back to the running thread.
Proposal
Add an opt-in mid-turn notification path — either an optional notify?: boolean (with an optional short title?: string or default thread title) on send_to_user, or a dedicated notify_user MCP tool — that:
Emits a non-blocking alert through AgentAwarenessRelay (mobile push) and ThreadNotificationCoordinator (desktop toast/OS notification/sound) while the thread stays in running phase.
Deep-links directly to the running thread (/threads/<environmentId>/<threadId>).
Keeps full message bodies off the hosted relay (same privacy boundary as existing AgentAwarenessState: thread title + short headline only).
Still delivers when completion notifications are turned off (assuming per-event toggles land), with sensible rate limiting / dedupe so a runaway loop can't spam devices.
Curious whether you'd prefer this as a flag on send_to_user, a separate MCP tool, or scoped differently given the relay contract. Happy to help implement if you'd like to pursue it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
When a long-running coordinator thread is managing several delegated tasks or waiting on background work, there are moments mid-run where the agent wants to alert the user on mobile/desktop without stopping its current turn (and without blocking on
ask_question).Today:
send_to_userrenders Markdown inline mid-turn, which is great for keeping the user informed, but it does not trigger mobile push (AgentAwarenessRelay) or desktop notifications (ThreadNotificationCoordinator).ask_questiontriggers"Waiting for input", which pauses the calling thread until answered.Proposal
Add an opt-in mid-turn notification path — either an optional
notify?: boolean(with an optional shorttitle?: stringor default thread title) onsend_to_user, or a dedicatednotify_userMCP tool — that:AgentAwarenessRelay(mobile push) andThreadNotificationCoordinator(desktop toast/OS notification/sound) while the thread stays inrunningphase./threads/<environmentId>/<threadId>).AgentAwarenessState: thread title + short headline only).Curious whether you'd prefer this as a flag on
send_to_user, a separate MCP tool, or scoped differently given the relay contract. Happy to help implement if you'd like to pursue it.All reactions