Commit 74e66bf
fix(webapp): set completedAt for FAILED synthetic run-header
Third surface of the same symmetric pattern (alongside
ApiRetrieveRunPresenter and buildSyntheticSpanRun). The run-detail
route derives `isCompleted` from `run.completedAt \!== null` and gates
SSE live-reloading on it (`route.tsx:459`, `:551`). Leaving the field
null for FAILED buffered runs would keep a terminal run live-reloading
indefinitely while the badge already says SYSTEM_FAILURE.
Falls back to `run.createdAt` for the FAILED case — same approximation
used by the sibling helpers. New unit test pins the contract for the
NavBar header.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5bc96f7 commit 74e66bf
2 files changed
Lines changed: 26 additions & 1 deletion
File tree
- apps/webapp
- app/v3/mollifier
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
54 | 63 | | |
55 | 64 | | |
56 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
89 | 105 | | |
90 | 106 | | |
91 | 107 | | |
| |||
0 commit comments