A run keeps the inputs its flow declared at submit

Run.declared (migration 2e7ca7d10044) snapshots the declarations on submit
and import. The run detail's Inputs panel reads them, and a run from before
falls back to the flow's current declarations.
This commit is contained in:
2026-10-15 10:20:29 +02:00
parent eca3fa0049
commit caa2cff6b1
10 changed files with 77 additions and 6 deletions
+4
View File
@@ -210,6 +210,10 @@ class RunRow(BaseModel):
class RunDetail(RunRow):
result: dict[str, Any] = Field(default_factory=dict)
flow_version: int = 1
#: The inputs the flow declared when this was submitted, with their
#: declared values. Null for a run from before this was kept, which reads
#: against the flow's current declarations instead.
declared: dict[str, Any] | None = None
nodes: list[RunNodeRow] = Field(default_factory=list)
artifacts: list[ArtifactRow] = Field(default_factory=list)