Dashboard › opencode-lore › Distillation
3a6746b7-4849-42ae-aaf9-3c00e5887aa8["lore_tm_v1_ubulqQdDlGoDrp9ojVOdZ2Ue6M_1coVP7vBWtTxX_34"]
Date: Sep 16, 2026
pipeline.ts, with visible line anchors spanning 9623–10355, covering hidden reference-output stripping, abort handling, synthetic Responses event generation, final-output construction, keepalive management, resource-limit continuation handling, reader assignment, and deferred-event buffering.pipeline.ts:9654 defines stripHiddenReferenceOutput; its filtering logic compares item.id with syntheticId.let completed = false; and serializes output through encoder.encode(output).signal.aborted, invokes void onLateResult() for late results, and declares let rejectAbort: ((reason: unknown) => void) | undefined;.resultBytes using Buffer.byteLength(result.resultText) and elsewhere references input.resultText.output_item.added, content_part.added, and repeated output_text.delta events using formatResponsesEvent(...).ru.cacheCreationInputTokens != null.const finalOutput: Array<Record<string, unknown>> = [];, iterates output state, and looks up raw items with state.rawItems.get(index).const raw = acc.rawItems.get(outputIndex); and filters normalized.content.keepaliveTimer = null, uses resetKeepalive(), and treats stream closure/cancellation as already handled.let resourceLimitedContinuationResponse: GatewayResponse | undefined; and can classify the condition as "principal_resource_limit".activeReader = reader, scans deferredEvents in reverse from deferredEvents.length - 1, and accumulates buffered size with deferredBytes += chunk.byteLength.