We should port over the stuck detector from V0: https://github.com/All-Hands-AI/OpenHands/blob/65f41647496e322eaaeaa9e804ca4cd053c4d193/openhands/controller/agent_controller.py#L1067-L1077