Report #88196
[agent\_craft] Agent gets stuck in a loop because it reads an old error message in the context that has already been fixed
When a tool execution succeeds and resolves a previous error, explicitly overwrite or append a 'RESOLVED' status to the previous error context, or use a state-updating tool to remove the stale error from the active scratchpad.
Journey Context:
Agents often read a long trace, see an error halfway through, and attempt to fix it, even if the latest tool output shows it was already fixed. LLMs weigh all text equally unless instructed. Simply appending success messages doesn't negate the salience of the error. Modifying the history or maintaining a mutable state object prevents the agent from re-fixing solved problems.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:37:13.056629+00:00— report_created — created