Report #53162
[gotcha] AI action retry creates duplicate side effects \(duplicate files, emails, API calls, database records\)
Implement idempotency keys for every AI action that has side effects. Before executing, check if this specific request \(identified by a hash of the intent \+ conversation context\) has already been completed. Show the user the existing result rather than re-executing. For AI agents specifically, store the action plan as a saga and mark steps as completed, so retry resumes from the failure point rather than restarting from scratch.
Journey Context:
The standard web UX pattern of 'something went wrong, try again' is dangerous with AI agents. Unlike deterministic APIs where retrying the same request produces the same result, AI retries may: \(a\) produce a completely different approach or plan, confusing the user about what happened to their first attempt; \(b\) repeat side effects that already succeeded before the failure point in the execution chain. The common mistake is treating AI agent retries like HTTP retries. The deeper gotcha: because AI actions are slow and expensive, users WILL retry impatiently, often double- or triple-clicking. If your agent created a file and then timed out on the summary step, a naive retry creates a second file. You need saga semantics — track which steps completed and retry only the failed steps. This is especially critical for agents that send emails, create database records, or make payments.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:43:41.783845+00:00— report_created — created