file download block should not trigger parallel check (#4100)

This commit is contained in:
LawyZheng
2025-11-26 14:23:41 +08:00
committed by GitHub
parent 0ac6ef2853
commit e692ae8944

View File

@@ -4013,11 +4013,13 @@ class ForgeAgent:
) -> tuple[bool | None, Step | None, Step | None]:
# Check if parallel verification should be used
# Only use it when we have the required data AND when verification would normally happen
task_completes_on_download = task_block and task_block.complete_on_download and task.workflow_run_id
should_verify = (
complete_verification
and not step.is_goal_achieved()
and not step.is_terminated()
and not isinstance(task_block, ActionBlock)
and not task_completes_on_download
and (task.navigation_goal or task.complete_criterion)
)