Dashboard › opencode-lore › Distillation
04be3943-ac86-4ce9-9217-61467aad19e4["lore_tm_v1_Y9hcB-rGqOovz19CkyA9Ep3bJqkKXkiGlm1a51D1T-I"]
Date: September 16, 2026
packages/gateway/src/pipeline.ts covered approximately lines 10817–11783, focusing on follow-up continuation streaming, held-event release, nested recall handling, continuation failure recovery, transaction finalization, principal-stream retries, and usage reporting.parseSSEStream(follow.reader, ...); continuation accumulation uses contState, streamed reasoning is retained via preserveStreamedReasoning(contState, ci), and selected held events are removed with heldContinuationEvents.splice(index, 1).contPending.map((recall) => recall.outputIndex) and distinguishes continuation items whose type === "function_call".continuationFailureCategory = "follow_up_protocol" for follow-up protocol failures and recognizes RecallContinuationFailure during error handling.mergeUsage(state.usage, contState.usage), including handling when contState.terminalEvent === "response.incomplete".finalRecallRound: recallBudget.mustFinalizeNext(), allowing the recall budget to force the next round to produce a final response.transactionRollbacks.length = 0; post-delivery completion failures are logged as "recall onComplete failed after delivery".principalReader = null; retry handling checks error instanceof SSEStreamTransportError, tracks principalTransportRetries, and can call opts.retryPrincipal.continuationFailureCategory ?? "unexpected" when no more specific continuation failure category was assigned.