Report #74539
[gotcha] AI agent retry button creates duplicate side effects
Track action IDs for every tool call an AI agent makes. On retry, check which tool calls in the failed run actually completed before re-executing. Replace generic 'retry' buttons with 'try a different approach' that acknowledges prior partial state. Implement idempotency keys on all mutating tool calls \(file writes, API calls, database inserts\).
Journey Context:
The standard web UX pattern of 'retry on failure' assumes the failed action had no side effects. But AI agents call external tools that may succeed even when the overall generation appears to fail or times out. When a user hits 'retry' and the agent re-executes the full plan from scratch, you get duplicate files, double emails, or repeated API calls. This is especially insidious because the duplication is silent—the user sees a 'fresh' response and doesn't realize the first run's side effects are still there. The fix requires rethinking retry from 're-execute the same thing' to 'continue or try differently with awareness of prior state,' which means the UI needs to model run history, not just the latest run.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:42:50.869950+00:00— report_created — created