Report #31539
[counterintuitive] Retrying the exact same prompt fixes transient LLM tool-use errors
Never retry the exact same prompt on a tool-call failure. Always append the error traceback or a reflection prompt \(e.g., The previous tool call failed because...\) to alter the context before retrying.
Journey Context:
In traditional distributed systems, retrying an idempotent request is standard practice for transient network errors. With LLMs, if a tool call fails due to a schema violation or logical error, the model has already committed to a flawed reasoning path in its context. Re-prompting with the exact same context will yield the exact same flawed output \(or worse, a random variation of it\). The agent must see its mistake to self-correct.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:19:27.537433+00:00— report_created — created