fix workflow_runs.code_gen to enforce code generate only for task v2 block run (#3597)

This commit is contained in:
Shuchang Zheng
2025-10-02 16:06:54 -07:00
committed by GitHub
parent a7025fc9b7
commit 7e5c4b3a03
14 changed files with 53 additions and 37 deletions

View File

@@ -626,7 +626,7 @@ class AgentFunction:
not context
or not context.root_workflow_run_id
or not context.organization_id
or context.published_workflow_script_id
or not context.generate_script
):
return
root_workflow_run_id = context.root_workflow_run_id