Upstream contribution · tigerless-labs/cost-xray
cost-xray · Capture complete server-sent events in cost-xray
Problem
The API-capture path decoded SSE data before it had assembled each full event. A JSON object split across multiple data fields could be lost from the captured stream.
Engineering response
Join data fields according to SSE event boundaries and decode the resulting payload. Continue collecting after non-object events.
Evidence and scope
The pull request reports a before-and-after regression and 226 passing isolated tests, with two skips. The check uses local inputs and no live provider.