openfang
openfang copied to clipboard
Error: Request failed: Max iterations exceeded: 50
Description
in chat,use claude cli,cli back normal,but agent back this promble,Error: Request failed: Max iterations exceeded: 50,restart is same
Expected Behavior
...
Steps to Reproduce
...
OpenFang Version
openfang 0.4.0
Operating System
macOS (Apple Silicon)
Logs / Screenshots
No response
The iteration limit is configurable per-agent via the [autonomous] section in agent.toml. Set max_iterations to whatever you need:
[autonomous] max_iterations = 200
The default is 50 when no [autonomous] section exists. The error message has been improved to include this guidance so users know how to configure it.