[高] 多审批节点共享同一__hil_decision变量 #78

Closed
opened 2026-05-10 18:39:10 +08:00 by admin · 0 comments
Owner

问题描述

backend/app/services/workflow_engine.py 第1388行,所有审批节点共用同一个 __hil_decision 全局变量。当工作流中有多个审批节点时,后一个审批会覆盖前一个的决策结果。

涉及文件

  • backend/app/services/workflow_engine.py:1388

修复建议

为每个审批节点使用独立的决策变量,如 _hil_decision{node_id}。

严重程度

高 - 审批逻辑错误

## 问题描述 backend/app/services/workflow_engine.py 第1388行,所有审批节点共用同一个 __hil_decision 全局变量。当工作流中有多个审批节点时,后一个审批会覆盖前一个的决策结果。 ## 涉及文件 - backend/app/services/workflow_engine.py:1388 ## 修复建议 为每个审批节点使用独立的决策变量,如 __hil_decision_{node_id}。 ## 严重程度 高 - 审批逻辑错误
admin closed this issue 2026-05-10 18:59:11 +08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/aiagent#78