Commit c5e3ddb
fix(webapp): nullish check on synth-span metadata + tighten tags vs runTags test
Two CodeRabbit findings on PR #3755:
1. `buildSyntheticSpanRun` was using `run.metadata ? prettyPrintPacket(...) : undefined`.
The truthy check drops `""` (and any other intentionally-empty
packet), even though the payload branch above already uses a
nullish check and preserves empty-string payloads. Align the two
branches with `typeof !== "undefined" && !== null` so empty
metadata renders consistently.
2. The "forwards runTags from the snapshot tags array" assertion in
`mollifierSynthesiseFoundRun.test.ts` used the same value for
`tags` and `runTags` in its fixture. That would silently pass if
`synthesiseFoundRunFromBuffer` accidentally read `runTags` instead
of `tags`. Use distinct values so the assertion actually locks the
mapping down.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7beea9a commit c5e3ddb
2 files changed
Lines changed: 20 additions & 7 deletions
File tree
- apps/webapp
- app/v3/mollifier
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
197 | 202 | | |
198 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
199 | 207 | | |
200 | | - | |
| 208 | + | |
201 | 209 | | |
202 | 210 | | |
203 | 211 | | |
| |||
0 commit comments