suchintan.vibe code user goal check (#2349)

Co-authored-by: lawyzheng <lawyzheng1106@gmail.com>
This commit is contained in:
Shuchang Zheng
2025-05-15 08:18:24 -07:00
committed by GitHub
parent 847ddacebd
commit ed4280153f
30 changed files with 251 additions and 9 deletions

View File

@@ -79,7 +79,11 @@ class Step(BaseModel):
if output is not None and status is None:
raise ValueError(f"cant_set_output_without_updating_status({self.step_id})")
if self.output is not None and output is not None:
if (
old_status not in [StepStatus.running, StepStatus.created]
and self.output is not None
and output is not None
):
raise ValueError(f"cant_override_output({self.step_id})")
if is_last is False: