Merge branch 'codex/simp-prune-llm-contract' into codex/simp-hide-llm-adapter-helpers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user