Agent retries can double-charge users — idempotency keys are the fix
FallElectronic3774 · reddit · 2026-11-11
When an agent retries a failed tool call, it assumes the call never happened. That holds for a 500 that never reached the service but fails for a timeout after the work was done, and the model can't tell them apart from the error string. The fix isn't a better prompt — it's an idempotency key the tool honours, so retries return the first result instead of doing the work twice. Payment APIs have worked this way for years; agents are now the ones calling them.
More from coding & agent
- Running a fully local AI coding stack: Pi agent plus 58GB Qwen coder on an M3 Max — julsimon · 2026-11-11
- One-file playable stealth heist game built by Claude, all assets drawn in code — heypearlai · 2026-11-11
- Building an AI data analyst: how to handle conflicting per-user KPI definitions — Lopsided_Feedback_81 · 2026-11-11
- 7 memory slots vs 200K tokens: the hardware mismatch behind AI coding debt — esrtweet · 2026-11-11
- Sydney Codex Community Buildathon set for Nov 14 with Cerebras-backed ultrafast compute track — paw_lean · 2026-11-11
- shadcn's improve hits 10k stars: let top models plan, cheap models execute code fixes — shadcn · 2026-11-11