Date: 2026-05-21
Source: Hilbert subagent review of the Telemetry Artifact Viewer changes.
The Telemetry Artifact Viewer renders proxy telemetry artifacts such as proxy.measured.http.jsonl.
The main readability issue was that x_gripprobe_body_excerpt values were displayed as JSON strings with escaped quotes, for example {\"model\":\"...\"}.
That made the popup hard to read and made browser search less useful.
Raw telemetry artifacts must stay unchanged. Any readability improvements belong in the HTML viewer layer.
Avoid global post-processing after JSON.stringify.
A display helper that runs after JSON.stringify() and globally replaces escape sequences can make the displayed JSON invalid. For example, a string value like "{\"model\":\"x\"}" can become "{"model":"x"}". It can also corrupt unrelated string values that happen to contain escaped quotes or slashes.
Preferred approach: normalize or parse only the target excerpt fields before formatting the object for display.
Decode candidate excerpt text before parsing it.
Double-escaped JSON excerpts such as {\\\"model\\\":...} should be decoded first. Then the viewer should retry JSON parsing and SSE parsing on the decoded value. If decoding happens only after parsing fails and the result is kept as a plain string, the structured view is never reached.
Handle CRLF SSE streams.
SSE parsing should normalize \r\n to \n or split with a CRLF-aware expression. Splitting only on \n\n can collapse multiple data: events into one payload and fail JSON parsing.
x_gripprobe_body_excerpt and body_excerpt.data: chunk parsing.data: {...} excerpt.JSON.stringify.