Dashboard › opencode-lore › Distillation
42bf6bd6-1006-4f3e-8732-82df1bf67acc["lore_tm_v1_I46f7ki9XV4-GMjC5vNJmMrCxhrqc2PZu0jJ5EXQ55U"]
Date: Sep 16, 2026
packages/gateway/src/pipeline.ts applies the post-response accumulation invariant in at least two separate stream-processing paths, each marked with the exact comment // Always accumulate into the internal state for postResponse.state.rawItems.has(sourceIndex) and state.items.has(sourceIndex), tracks forwarded positions, and determines newly private output with const newlyPrivate = !recallIndices.has(outputIndex);.JSON.stringify({ ...parsed, output_index: visibleIndex }), mapping source output indices to visible indices.packages/gateway/test/openai-responses-recall-aware-stream.test.ts adds coverage for sparse visible output, including content { type: "output_text", text: "sparse visible text" }, and asserts that output does not contain "private result".textItem(0, "Here is the answer from the continuation.") to textItem(7, "Here is the answer from the continuation."), exercising a sparse output index.textItem(7, "already visible", "msg_sparse_visible").{ status: "failed", output: [] }.response.function_call_arguments.delta, recall call counting through recallCalls++, both initial and continuation stream sources, and post-interception filtering of non-semantic frames./home/byk/.local/share/opencode/tool-output/tool_0aae060b9001mpXPNrZ2FUSDPB.