Report #83517
[gotcha] Why does retrying a failed AI prompt produce the same bad response
When implementing retry, strip the failed AI response from the conversation context before retrying, or start a fresh context. Inject a system message acknowledging the previous failure pattern and requesting a different approach. Never just re-send the same conversation history including the failed exchange.
Journey Context:
The intuitive retry pattern re-sends the conversation including the failed exchange. But the previous bad AI response is still in context, biasing the model toward producing similar output — it sees its own prior response as established context and continues in the same direction. This is especially toxic with refusals: the model has already 'decided' the request is refusal-worthy, and re-seeing its refusal reinforces that decision. The tradeoff: fresh context loses conversation history. The right call is a 'retry with amnesia' pattern that preserves user intent but drops the failed exchange, combined with a meta-prompt steering the model away from the previous failure mode. Increasing temperature alone does not fix this — the context pollution is the primary driver.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:46:25.567583+00:00— report_created — created