Crash test: LangGraph, Pydantic AI and OpenAI Agents SDK all double-charge payments

KaleidoscopeNew9259 · reddit · 2026-11-06

Developer Salah Makboul ran a crash test across LangGraph, Pydantic AI, and OpenAI Agents SDK: kill the process right after an approved tool payment, then resume per each framework's docs. 30 runs per framework (Oct 21–Nov 5, latest versions daily).

The finding isn't a bug but inherent at-least-once execution: doing the work and saving that you did it are two steps. All three projects were notified 14+ days ahead—OpenAI added docs, Pydantic AI reproduced it, LangGraph docs already warn.

Mitigations: provider-enforced idempotency keys, treating "maybe happened" as unknown instead of retrying, and validating approvals against exact tool arguments. Write-up, scripts, and per-run data on GitHub (author maintains the free Call4Agents library).

Related event: Agent Frameworks Double Payments After Crash, Tests Show(2 posts)→

Original post →

More from coding & agent

coding & agent channel →