fix get first step issue (#1514)

This commit is contained in:
LawyZheng
2025-01-08 13:08:36 +08:00
committed by GitHub
parent 310b11365a
commit ff8405d1d5

View File

@@ -400,6 +400,7 @@ class AgentDB:
.filter_by(task_id=task_id) .filter_by(task_id=task_id)
.filter_by(organization_id=organization_id) .filter_by(organization_id=organization_id)
.order_by(StepModel.order.asc()) .order_by(StepModel.order.asc())
.order_by(StepModel.retry_index.asc())
) )
).first(): ).first():
return convert_to_step(step, debug_enabled=self.debug_enabled) return convert_to_step(step, debug_enabled=self.debug_enabled)