Record which inputs a run's caller passed, and mark defaults from it
`Run.passed` (migration d5a3c8e1f246) keeps the names the caller chose, so the run detail and the comparison table can mark a value as the flow's own again; rows from before it fall back to the names their params lack. Retries hand on their parent's list, imports record their entry's. Also: a cancel of a queued run no longer leaves its id in `_cancelled`, a linked comparison no longer crashes before the list loads, and the pre-commit failures are fixed (stale client, `text-[10px]`, worker formatting). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013GAeg4Jo6xjZzjwy9QDWMQ
This commit is contained in:
@@ -356,6 +356,9 @@ class Run(SQLModel, table=True):
|
||||
#: repository, or for a flow drawn on the canvas.
|
||||
code_digest: str = Field(default="", max_length=64)
|
||||
params: dict[str, Any] = Field(sa_column=Column(JSON), default_factory=dict)
|
||||
#: The names in `params` the caller chose; the rest are the flow's declared
|
||||
#: values. Null for a run recorded before this was kept.
|
||||
passed: list[str] | None = Field(sa_column=Column(JSON), default=None)
|
||||
#: sha256 over params and seed. Two runs of the same thing share it, which
|
||||
#: is what makes "have I already run this?" a lookup.
|
||||
params_digest: str = Field(default="", index=True, max_length=64)
|
||||
|
||||
Reference in New Issue
Block a user