Dashboard › opencode-lore › Distillation
5629cd57-f55b-4523-98f1-783993469c78["lore_tm_v1_fGfT7-frd_LJs-89uOYFeurrNhT6IqekLMIhBT-Azv0"]
Date: Sep 16, 2026
packages/gateway/src/stream/openai-responses.ts, approximately lines 11030–11708. The code tracks resolvingRecallTool, contRecallIndices, hidden continuation chunks and hiddenBytes, throws RecallContinuationFailure, handles response.output_item.done, computes incompleteRecallIndices, detects whether contState.terminalEvent exists, recognizes frame-limit errors via /^SSE stream exceeded \d+ frame limit$/, assigns transactionalBytes, categorizes failures as "follow_up_transport", supports retryFollowUp, compares itemIdentities against existing state.items, validates non-empty string identity values, checks contState.rawItems.size === 0, maintains transactional rollback callbacks and transactionRollbacks, emits text blocks with type: "text", propagates continuationFollowUpInput.finalRecallRound, carries nextExecuted.resultText, calls settleFollowUp(continuationFollowUpInput), distinguishes errors using err instanceof RecallContinuationFailure, filters for blocks where block.type === "tool_use" and block.name === "recall", clears rollback state with transactionRollbacks.length = 0, calls safeClose(), and classifies principal transport failures through isPrincipalTransportFailure, including a "retry" outcome.