Dashboard › opencode-lore › Distillation
75b7579d-0fc4-4e1a-a5e1-8e6ce395b62f["lore_tm_v1_ttGVst58uPqI1r2N2XCc3Xbl4OCRPSjNsKUYGsuPwZ8","lore_tm_v1_csJocKFuNFRxdrHeKKq0G2X3l-erRAxFAEU_etdDzNU"]
Date: Sep 16, 2026
packages/gateway/src/pipeline.ts (270 changed lines in the diff summary) and packages/gateway/test/openai-responses-recall-aware-stream.test.ts (446 changed lines).packages/gateway/src/pipeline.ts:9839-9846, terminal-response projection reads terminalResponse?.incomplete_details, accepts it only when it is a non-array object, and extracts reason only when it is a string; this value is then used while formatting the terminal Responses event.applyResponsesEvent() is defined in packages/gateway/src/stream/openai-responses.ts:582, with calls shown at lines 1393, 1597, 1767, 2158, and 2250.streamResponsesRecallAware() is exported from packages/gateway/src/pipeline.ts:7794; related stream machinery includes validateResponseLifecycle() at line 9144, shiftedOutputIndex() at line 9721, visibleOutputIndexMap() at line 9953, remapVisibleOutputIndices() at line 9963, enqueuePrincipal() at line 10054, and enqueueProjectedPrincipal() at line 10163.packages/gateway/src/pipeline.ts tracks forwardedVisibleOutputIndices (Map<number, number>) and remaps source output indices to visible output indices before forwarding chunks.deferredEvents with candidate-index handling and transactionalEvents: Uint8Array[]; it validates lifecycle events with validateResponseLifecycle(), accumulates state through applyResponsesEvent(), flushes deferred events through projected enqueueing, and shifts continuation/recall output indices with shiftedOutputIndex().msg_sparse_terminal_visible, continuation-output assertions containing "continuation", recall-count tracking via let recalls = 0, and a case using output_index: 7.