What Do You Do When ChatGPT Keeps Giving the Same Wrong Fix?
Stop after two failed attempts. Ask for a summary of what was tried, undo the failed edits, and open a new chat with the problem, the evidence and a list of what didn't work. Telling it to try again in the same thread usually gets you another version of the same idea.
Stop trying fixes. Write a handoff I can paste into a new chat. Include only: 1. The problem in one sentence, with the exact error or wrong output 2. Facts that have been confirmed, and how 3. Each fix tried, and exactly what happened 4. Any assumption in this chat that hasn't been proven Don't include a theory about the cause. --- Then, in the new chat, paste the handoff and add: The fixes above failed, so don't suggest them or small variations on them. Start by listing what could be wrong with the assumptions in section 4. Then tell me what evidence would help most. I can run [commands or logs available to you].
- 1A fix fails
- 2Another variation fails
- 3Stop and write a handoff
- 4New chat, with what failed
Try it now
- 1When a second fix fails, paste the first half of the prompt into the same chat.
- 2In Codex or a repo, undo the failed edits first, such as with
git restoreon the affected files. Otherwise the next attempt starts from a broken state. - 3Select New chat (or
/new), paste the handoff and the second half. It worked if the new answer proposes something you haven't tried, or asks for evidence you hadn't considered.
Use it when
When a new answer is a light rewording of an old one, when it re-suggests something you already told it failed, or when it apologizes and tries the same fix again. Two failed attempts is a sensible limit for small bugs.
Skip it when
If each attempt is making real progress, such as a different error each time, stay in the thread, because that history is useful. And if ChatGPT lacks a fact it can't get, like a file it hasn't seen, a new chat won't help. Provide the missing evidence first.
Why it works
OpenAI's glossary counts prior messages and tool output as context, so a failing thread keeps feeding its own wrong theories back to the model. That's a practical observation, not a vendor claim. A new chat drops those attempts while your handoff keeps the facts.
OpenAI's iterate-on-difficult-problems use case gives the same discipline for hard problems: find the biggest failure, make one focused change, re-run the checks, log the result, and repeat. It warns that changing many things at once makes it impossible to tell what helped. And its running log serves as the handoff when work resumes.
One warning for Codex: a new chat doesn't reset your files. OpenAI notes that changing an instruction doesn't undo an action already completed, so three failed fixes may still be sitting in your code.
Example
Say ChatGPT has given you three versions of a CORS header fix, and your API still returns an error. In the handoff, section 4 reads: "Assumes the request reaches the app." A new chat, told not to retry header changes, asks you to check the proxy logs. That's the assumption nobody had tested, and you can look at it in minutes.
Going further
A reset isn't the only way out. In Codex, /status shows context usage, so you can see if the chat is crowded, and /compact compacts the context when you want to keep going. /fork keeps the original chat if you'd like to try a different direction. You can also raise the effort: OpenAI's Models page suggests High or Extra High for difficult multi-step work, or Max for extra reasoning time on one task. If you've got memories on, a wrong conclusion could follow you into new chats, so use /memories to set a per-chat choice. OpenAI says per-chat choices don't change your global settings.
Common mistakes
- Typing "still broken, try again" a fifth time. Each attempt adds to the same wrong path.
- Starting a new chat with no handoff, then watching it suggest the fix you just ruled out.
- Forgetting the failed edits are still in your code, so the next bug report describes a mess you created.
- Blaming the model when evidence is missing. If you haven't shown the failing input, a stronger model can only guess harder.
Sources
- ChatGPT Learn: Glossary
- OpenAI use case: Iterate on difficult problems
- ChatGPT Learn: Working with agents
- ChatGPT Learn: Slash commands
- ChatGPT Learn: Models
- ChatGPT Learn: Memories
Checked 6 November 2026. Products change often, so confirm details with the vendor.