Dashboard › opencode-lore › Distillation
341fd2cc-9746-44c7-9f28-289b3be52c6c["lore_tm_v1_QQ1Y5nJAYXiIzI8eCL3JC7aKzGduMTLWQG5NwDpz7nQ","lore_tm_v1_Tyq0n3u4QZ_s7igH5iZPVdunUjVXtIdtvNvPsgr_TXM","lore_tm_v1_3t4sOsFLQRiUep_BK7IZ-4NnULpf-LAjKf6VTOjBi5Y","lore_tm_v1_0HDeIfbafVA1OHEPpp3EpBWM8tTH979Yhl8OaSofmlY","lore_tm_v1_VnHM-v_z_I0w0Mdtb1aBs9tvfcPQ-wCkl492ykFrUws","lore_tm_v1_BEXkXOaej0vf0ppqr7uYItHXTzpd8QdP0L-2JfuycnE","lore_tm_v1_PzTlB2FQmje2sMJoNga9RISz-uMt1jJgvU2YZ6P2Geo","lore_tm_v1_M1EbiTq486GSF8ixRLIjUcvy9q2ax3hs-P9evQqonZA"]
Date: Sep 16, 2026
packages/gateway/test/openai-responses-recall-aware-stream.test.ts.suppresses malformed non-JSON principal Codex quota events failed at packages/gateway/test/openai-responses-recall-aware-stream.test.ts:294: output leaked both private-principal-quota-sentinel and event: codex.rate_limits, although "safe answer" remained present.suppresses malformed non-JSON continuation Codex quota events failed at packages/gateway/test/openai-responses-recall-aware-stream.test.ts:329: output leaked both private-continuation-quota-sentinel and event: codex.rate_limits, although "safe continuation" remained present.bounds Codex quota metadata by bytes across the principal and continuation failed at packages/gateway/test/openai-responses-recall-aware-stream.test.ts:394: emitted canonical quota metadata measured exactly 16,535 bytes, exceeding MAX_CODEX_RATE_LIMIT_BYTES of 16,384 bytes.packages/gateway/src/stream/openai-responses.ts: import of appendCodexRateLimitEvent at line 37, ResponsesAccState.codexRateLimits at line 61, accumulation through applyResponsesEvent() at lines 618–619, finalized propagation at lines 913–914, and validated forwarding at lines 2380–2385.applyResponsesEvent() in packages/gateway/src/stream/openai-responses.ts:612-620 handles event === "codex.rate_limits" by calling appendCodexRateLimitEvent((state.codexRateLimits ??= []), parsed) and returns the accepted normalized event or undefined.packages/gateway/src/stream/openai-responses.ts:2379-2387 suppresses a parsed codex.rate_limits event unless acceptedCodexRateLimit is truthy; accepted quota events are forwarded as JSON.stringify(acceptedCodexRateLimit), while other event types retain their original data.index + 1 always changes the value.accumulateResponsesSSEStream() in packages/gateway/src/stream/openai-responses.ts:1931-1934 computes maxSparseIndex as Math.min(opts.maxFrames ?? DEFAULT_MAX_SSE_FRAMES, DEFAULT_MAX_SSE_FRAMES), capping caller-supplied frame overrides at the production ceiling.accumulateResponsesSSEStream() attempts JSON.parse(data) at packages/gateway/src/stream/openai-responses.ts:1957-1965; parse failures throw "malformed Responses stream event" only when opts.validation is set, while the tolerant no-validation path merely continues.isRecord(parsed) at lines 1967–1969, validatePublicResponsesEvent(...) at lines 1984–1986, and validateCodexResponsesEvent(...) at lines 1986–1988.packages/gateway/src/stream/openai-responses.ts:2187 stores the return value of applyResponsesEvent(state, event, parsed) as acceptedCodexRateLimit; this value later controls whether a codex.rate_limits event is emitted.codexRateLimits array belonging to the current ResponsesAccState; the failing combined principal-plus-continuation test demonstrates separately accumulated stream segments can collectively exceed the global 16 KiB output budget even when each segment is locally accepted.