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).
This commit is contained in:
2026-10-05 15:01:33 +02:00
parent bca28dbf75
commit 929933d7c3
12 changed files with 134 additions and 31 deletions
+8 -3
View File
@@ -30,6 +30,7 @@ import {
runQueryOptions,
shortCommit,
shortId,
tookDefault,
useCancelRun,
useFlowInputs,
useRetryRun,
@@ -64,11 +65,15 @@ export function RunDetail({ id }: { id: string }) {
...[...declared.keys()].map((name) => ({
name,
value: name in run.params ? run.params[name] : declared.get(name),
fromFlow: !(name in run.params),
fromFlow: tookDefault(run, name),
})),
...Object.keys(run.params)
.filter((name) => !declared.has(name))
.map((name) => ({ name, value: run.params[name], fromFlow: false })),
.map((name) => ({
name,
value: run.params[name],
fromFlow: tookDefault(run, name),
})),
]
return (
@@ -246,7 +251,7 @@ export function Entry({
<dt className={cn(LABEL, "flex items-baseline gap-1.5")}>
{name}
{note && (
<span className="rounded-full border border-border px-1.5 text-[10px]">
<span className="rounded-full border border-border px-1.5 text-xs">
{note}
</span>
)}