[aidan] feat/workflow-model: persist edit-agent model on save with switch notice and fresh drafts

This commit is contained in:
abccodes
2026-06-18 23:30:43 -07:00
parent 02f0736c63
commit b0725083a3
6 changed files with 102 additions and 11 deletions
+6
View File
@@ -225,3 +225,9 @@ class WorkflowUpdate(BaseModel):
cost_cap_usd_monthly: Optional[float] = None
remembered_approvals: Optional[dict[str, Literal["allow", "deny"]]] = None
step_tool_usage: Optional[dict[str, dict[str, bool]]] = None
class DraftCommitBody(BaseModel):
# The model the user settled on in the Edit Agent picker, applied to the
# workflow's run model only on Save (save-gated; Discard drops it).
model: Optional[str] = None