openfang icon indicating copy to clipboard operation
openfang copied to clipboard

Error: Request failed: Max iterations exceeded: 50

Open ych411521894 opened this issue 8 months ago • 1 comments

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

ych411521894 avatar Mar 14 '26 14:03 ych411521894

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.

jaberjaber23 avatar Mar 14 '26 19:03 jaberjaber23