Repository navigation
Replies: 1 comment
|
It looks right to me. The relay already supports it. It's a small change that adds a very needed flexibility and changes nothing on the default behavior. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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