Skip to content

Commit

Permalink
fix terminate action bug (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng authored May 22, 2024
1 parent 43823b6 commit e8378e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions skyvern/forge/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,9 @@ async def agent_step(
node = ActionLinkedNode(action=action)
action_linked_list.append(node)

if not isinstance(action, WebAction):
continue

previous_action_idx = element_id_to_action_index.get(action.element_id)
if previous_action_idx is not None:
previous_node = action_linked_list[previous_action_idx]
Expand Down

0 comments on commit e8378e1

Please sign in to comment.