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
Mobile: let users choose which agent events send alerts (approval / input / completed / failed)
#37628
On Android (and iOS) the app sends an alert for every agent event, and there is no way to turn off the noisy ones. The only controls are the two toggles on the Notifications screen ("Device Notifications" and "Agent Live Updates / Ongoing Agent Activity"). The only finer control is Android's per-channel setting, and approval, input, completion and failure alerts all share the single "Agent alerts" channel.
"Completed" is the main source of noise, because it fires for every thread that finishes. "Needs approval" and "needs input" are the events that block the agent and are worth interrupting for.
The mobile app hardcodes all four to true when it registers the device (apps/mobile/src/features/agent-awareness/registrationPayload.ts).
The web "Mobile clients" profile page only displays them (apps/web/src/components/clerk/MobileClientsUserProfilePage.logic.ts). It doesn't let you edit them.
So the backend can already filter by event type, and nothing lets the user set it.
Proposal
Add four switches to Settings > Notifications, for approvals, input requests, completions and failures. Store them in mobile preferences and pass them into makeRelayDeviceRegistrationRequest instead of the hardcoded true values. Defaults stay all on, so nothing changes for existing users.
I'm happy to send a PR for this if the approach looks right.
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.
Problem
On Android (and iOS) the app sends an alert for every agent event, and there is no way to turn off the noisy ones. The only controls are the two toggles on the Notifications screen ("Device Notifications" and "Agent Live Updates / Ongoing Agent Activity"). The only finer control is Android's per-channel setting, and approval, input, completion and failure alerts all share the single "Agent alerts" channel.
"Completed" is the main source of noise, because it fires for every thread that finishes. "Needs approval" and "needs input" are the events that block the agent and are worth interrupting for.
What the code does today
notifyOnApproval,notifyOnInput,notifyOnCompletion,notifyOnFailure(infra/relay/src/agentActivity/agentActivityAlerts.ts,alertAllowedForPhase).truewhen it registers the device (apps/mobile/src/features/agent-awareness/registrationPayload.ts).apps/web/src/components/clerk/MobileClientsUserProfilePage.logic.ts). It doesn't let you edit them.So the backend can already filter by event type, and nothing lets the user set it.
Proposal
Add four switches to Settings > Notifications, for approvals, input requests, completions and failures. Store them in mobile preferences and pass them into
makeRelayDeviceRegistrationRequestinstead of the hardcodedtruevalues. Defaults stay all on, so nothing changes for existing users.I'm happy to send a PR for this if the approach looks right.
All reactions