bug read logs

The agent entered an infinite loop that he could not stop by consuming many tokens; he pressed the button to stop it but it was impossible until it stopped due to a timeout.