diff --git a/skyvern/forge/agent.py b/skyvern/forge/agent.py index 55f50c96c5..3a151986b4 100644 --- a/skyvern/forge/agent.py +++ b/skyvern/forge/agent.py @@ -1960,8 +1960,9 @@ async def handle_completed_step( step=step, page=page, ) - if not failure_reason: - failure_reason = f"Max steps per task ({max_steps_per_run}) exceeded" + failure_reason = ( + f"Reached the maximum steps ({max_steps_per_run}). Possible failure reasons: {failure_reason}" + ) await self.update_task( task,