Handling agent refund-call timeouts: idempotency keys and 'outcome unknown' instead of retry
Weird_Impression_264 · reddit · 2026-11-23
A developer shares how their support agent handles the scary case of a refund call timing out:
- Idempotency keys come from the platform, not the AI: each action gets an ID built from the operation and exact details (order, amount), so the agent's reasoning can't affect dedup.
- Timeouts are recorded as "outcome unknown", not "failed": the provider is asked what happened before any retry, and not finding a refund isn't treated as proof it didn't happen.
- Open question: some APIs can't distinguish a repeated request from a new one — how do you confirm success without risking a double refund?
More from coding & agent
- aibrush: open-source oil painting simulator where an LLM paints stroke by stroke, no diffusion — FotoRe_store · 2026-11-23
- One-sentence prompt: Fable 5.2 rebuilt a landing page in ~20 min with 91 passing tests — Specificx · 2026-11-23
- Claude Docs beats Google Docs in daily use as Anthropic ships an office suite in 10 weeks — rubenhassid · 2026-11-23
- Vibe-coding platforms vs raw Claude: an Israeli dev on lock-in, SDKs and trade-offs — aloncarmel · 2026-11-23
- Dev builds MCP server where an LLM judges goal completion to unlock blocked iPhone apps — publicfunc · 2026-11-23
- Dev builds 3D classroom-style visualization for multi-agent collaborative workspace — jasonkneen · 2026-11-23