Dashboard › opencode-lore › Responses ingress streaming and bounded…
01a0a466-cb9b-7003-902f-35426664c8ff| Project | Hits | Last recalled |
|---|---|---|
| opencode | 1 | 8d ago |
Chose incremental ingress parsing only for /v1/responses and /v1/codex/responses over universal streaming because only their shared item normalizer can consume input incrementally. Below 256 KiB, preserve exact JSON.parse; above it, replay once and stream $.input.* through createInputItemsBuilder(). This bounds Lore gateway parsing amplification, not upstream allocation: if OpenCode first constructs and serializes the full request body, downstream streaming cannot recover that memory. Audit OpenCode’s construction and serialization boundary before porting the builder.