Skip to content

[Bug]: CLI stopped due to max iteration, instead of ask for whether to continue #10571

@xingyaoww

Description

@xingyaoww

What problem or use case are you trying to solve?

CLI was directly interrupted when it hit 500 max iteration, instead of asking human to confirm whether to continue.

01:54:11 - openhands:WARNING: agent_controller.py:808 - Control flag limits hit
01:54:11 - openhands:ERROR: loop.py:24 - RuntimeError: Agent reached maximum iteration. Current iteration: 500, max iteration: 500
⚠️ Session was interrupted: error

Describe the UX or technical implementation you have in mind

When we hit max iteration, we should first ask human if they want to continue. If so, we should continue with the task

Additional context

If you find this feature request or enhancement useful, make sure to add a 👍 to the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIRelated to the command line interfaceenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions