diff --git a/pipeline_service/agent_loop.py b/pipeline_service/agent_loop.py index 0467ed9..3a09ad1 100644 --- a/pipeline_service/agent_loop.py +++ b/pipeline_service/agent_loop.py @@ -780,6 +780,11 @@ async def _create_next_task(sor, project_id, task, next_role, pm_comment=''): new_title = f"{title}({next_role}阶段)" new_params = {**params, 'previous_role': _normalize_role(getattr(task, 'role', '')), 'previous_task_id': getattr(task, 'id', ''), 'pm_comment': pm_comment} + # 清除 pm_assigned:它是「PM 按模块清单派发」的标记,只作用于当前任务; + # 下一角色任务是系统自动创建(非 PM 派发),若继承会污染——例如 PM 派发的 design 任务 + # 带 pm_assigned=True,design approved 后自动创建的 develop 任务继承了它,被 1785 行的 + # deploy_test 触发判断误判为「模块级 develop」,导致应用脚手架 develop approved 后跳过 deploy_test。 + new_params.pop('pm_assigned', None) new_task_id = getID() await sor.C('pipeline_tasks', { 'id': new_task_id, 'tenant_id': project_id, 'pipeline_id': 'role_task',