Notes · AI

My app once sent WhatsApp messages on its own

· Sebastian Schuon · Originally on LinkedIn

A man covers his eyes with one hand beside a WhatsApp chat screenshot about meeting on Wednesday 10:30 at Schub

My app once sent WhatsApp messages on its own. Not AI going rogue - but still an AI bug.

A Monday evening in September. Two people got a WhatsApp reply from me that I never sent. Both were the reply Claude had suggested, unchanged.

My first thought: the AI did send it. It didn’t.

My system has one hard rule: the AI only proposes, I send. There is exactly one way to send - a button in the app (which is a dedicated endpoint in the server). But turns AI is also good at debugging and found this weird coincidence:

  • On the Mac, the app keeps all tabs alive in the background, just invisible.
  • I was in the work tab, typing to Claude, and hit ⌘↩ to send.
  • The send button of a WhatsApp draft in a hidden tab listened to the same shortcut. And fired.

The fix: shortcuts only work in the tab you’re looking at. My approach to fix it was introduce UI test. Since then Claude clicks through the whole app before every release. Quite well-behaved so far 😉

Anyone building with agents that can send things: what’s your safety net beyond “AI only drafts”?

More from AI