Merge remote-tracking branch 'origin/master' into codex/simp-prune-llm-contract
# Conflicts: # docs/cordis-catalog/services.md # packages/llm/llm-deepseek/src/adapter.ts # packages/llm/llm/src/assembler.ts # packages/llm/llm/tests/assembler.spec.ts
This commit is contained in:
@@ -71,9 +71,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 prevents a
|
||||
// later chunk from rewriting a completed block.
|
||||
// First close wins; ignoring re-close stragglers keeps streamed output
|
||||
// and the final assembled block in agreement.
|
||||
if (partial.block) return
|
||||
partial.block = chunk.block
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user