openhands.controller.stuck
StuckDetector Objects
class StuckDetector()
is_stuck
def is_stuck(headless_mode: bool = True)
Checks if the agent is stuck in a loop.
Arguments:
headless_mode
- Matches AgentController's headless_mode. If True: Consider all history (automated/testing) If False: Consider only history after last user message (interactive)
Returns:
bool
- True if the agent is stuck in a loop, False otherwise.