Commit 673be9e
fix(webapp): treat FAILED buffered runs as terminal in spans/trace routes + align workerQueue default
Addresses three Devin review findings on PR #3755:
- api.v1.runs.\$runId.spans.\$spanId.ts and api.v1.runs.\$runId.trace.ts:
the buffered-run response branch hardcoded isError:false and only
checked CANCELED for isPartial, so a FAILED buffered run rendered as
"still in progress" — SDK consumers would poll forever. Now derives
both flags from CANCELED and FAILED, matching syntheticTrace.server.ts.
- ApiRetrieveRunPresenter.synthesiseFoundRunFromBuffer: workerQueue
defaulted to "main" while syntheticSpanRun.server.ts uses "". The API
response's `region` is sourced via `run.workerQueue || undefined`, so
"main" was advertising a region the run hadn't yet been assigned to.
Aligned to "" so unassigned buffered runs coerce to region: undefined.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent fe633cd commit 673be9e
3 files changed
Lines changed: 20 additions & 10 deletions
File tree
- apps/webapp/app
- presenters/v3
- routes
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
650 | | - | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
651 | 655 | | |
652 | 656 | | |
653 | 657 | | |
| |||
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
98 | | - | |
99 | | - | |
100 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
0 commit comments