Skip to content

Commit ad088f2

Browse files
authored
fix-step_number-in-take-step (#3038)
Auto-generated PR for branch: fix-step_number-in-take-step
2 parents a136785 + 2a1f820 commit ad088f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser_use/agent/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ async def take_step(self, step_info: AgentStepInfo | None = None) -> tuple[bool,
13121312
Returns:
13131313
Tuple[bool, bool]: (is_done, is_valid)
13141314
"""
1315-
if step_info is not None and step_info.step_number == 1:
1315+
if step_info is not None and step_info.step_number == 0:
13161316
# First step
13171317
self._log_first_step_startup()
13181318
await self._execute_initial_actions()

0 commit comments

Comments
 (0)