Merge branch 'codex/simp-prune-llm-contract' into codex/simp-hide-llm-adapter-helpers

This commit is contained in:
Tianyi Cui
2026-07-14 05:44:53 +08:00
2 changed files with 3 additions and 4 deletions

View File

@@ -72,9 +72,8 @@ export class BlockAssembler {
case 'block-end': {
const partial = this.ensure(chunk.index, chunk.block.type)
// First close wins: a second block-end for an already-closed index is
// a straggler (same rule as post-close deltas). Ignoring it keeps the
// streamed prefix and the final blocks() in agreement — otherwise a
// re-close could rewrite a block already flushed downstream.
// a straggler (same rule as post-close deltas). Ignoring it prevents a
// later chunk from rewriting a completed block.
if (partial.block) return
partial.block = chunk.block
return