Make your email agent idempotent against duplicate webhooks - DEV Community
Engineer at-least-once webhook handling for an Agent Account — dedup keys, atomic persisted ids, an idempotent send path, and per-thread locks so the agent never replies twice.