[eric] workflows: stop endpoint + last_tool_label live subtitle for RunningView

This commit is contained in:
ciregenz
2026-05-21 23:21:09 -07:00
parent 9a2ebc209b
commit a09a8a7eac
5 changed files with 118 additions and 4 deletions
+8
View File
@@ -66,6 +66,10 @@ class WorkflowStep(BaseModel):
label: Optional[str] = None
def _empty_str_default() -> str:
return ""
class Workflow(BaseModel):
# validate_assignment is load-bearing for the PATCH /workflows/{id} path
# (workflows.py:update_workflow setattr's raw dicts from body.model_dump
@@ -112,6 +116,10 @@ class WorkflowRun(BaseModel):
error: Optional[str] = None
cost_usd: float = 0.0
triggered_by: Literal["schedule", "manual", "retry"] = "schedule"
# Last tool-call label observed on the underlying agent session while
# the workflow is running. Surfaced under the active step in RunningView
# (Image #40) so the user can tell the run is still making progress.
last_tool_label: Optional[str] = None
class WorkflowCreate(BaseModel):