fix terminate action bug (#355)

This commit is contained in:
LawyZheng
2024-05-22 16:39:19 +08:00
committed by GitHub
parent 43823b6c6b
commit e8378e1fe1

View File

@@ -470,6 +470,9 @@ class ForgeAgent:
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]