Commit b76ef34
fix(webapp): set completedAt for FAILED synthetic span runs
Symmetric fix to the just-applied `ApiRetrieveRunPresenter` change.
PG-resident SYSTEM_FAILURE rows always have `completedAt` populated;
the synthetic span run was returning null for FAILED, so the
run-detail panel and any caller using `isFinished && completedAt` saw
a finished run with no completion timestamp. Fall back to
`run.createdAt` when `isFailed` is true (the buffer entry has no
separate failedAt — createdAt is the best proxy for when the terminal
state landed).
Regression locked in `mollifierSyntheticSpanRun.test.ts` —
the FAILED test now asserts `completedAt === NOW`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d4a4ae9 commit b76ef34
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
106 | 113 | | |
107 | 114 | | |
108 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
185 | 191 | | |
186 | 192 | | |
187 | 193 | | |
| |||
0 commit comments