Dashboard › opencode-lore › Distillation
8bac2335-cfab-4be7-acf7-09875e001961["lore_tm_v1_5wRSekrUak3qlwurGeyXM2J-f-kjrownsx-Qa-h7c94","lore_tm_v1_wwfY4BPikBWUWI7noavVdFcb89TDTZZaY4Qr0PdHdfo"]
Date: Sep 16, 2026
packages/gateway/test/openai-responses-stream.test.ts, approximately lines 4064–4890. The tests cover principal Responses streaming behavior including single emission of response.created, replacement of provider failure diagnostics with a fixed public failure envelope, rejection of non-monotonic failure sequences, handling diagnostics before response.created, parameterized provider events "error" and "response.error", crossed diagnostic aliases, safe live output, terminal statuses "response.incomplete" and "failed", malformed terminal output, and usage-bearing terminal responses.packages/gateway/test/openai-responses-stream.test.ts, approximately lines 4896–5290. The tests cover failure delivery under backpressure, synthesis of response.failed when the upstream ends without a terminal event, upstream cancellation, immediate forwarding of readable live bytes, terminal usage { input_tokens: 12, output_tokens: 3 }, finalization when the client cancels immediately after the terminal event, filtering synthetic message frames and trailing data: [DONE], propagation/finalization after new Error("upstream exploded"), and behavior with an upstream stream that remains open.packages/gateway/test/openai-responses-stream.test.ts:5278 never closes on its own.