Skip to content

fix(glm): drop extra 16th arg to SSE transform helper - #12770

Open
HouMinXi wants to merge 1 commit into
diegosouzapw:release/v3.8.51from
HouMinXi:fix/glm-sse-transform-arity
Open

fix(glm): drop extra 16th arg to SSE transform helper#12770
HouMinXi wants to merge 1 commit into
diegosouzapw:release/v3.8.51from
HouMinXi:fix/glm-sse-transform-arity

Conversation

@HouMinXi

@HouMinXi HouMinXi commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

translateSseResponse in open-sse/executors/glm.ts passed a 16th positional (65536) to createSSETransformStreamWithLogger. That helper has 15 parameters (open-sse/utils/stream.ts:2998-3013); last is requestToolIdentityMap. tsc reports TS2554. The number never reached TransformStream. The old comment about a 64KB buffer was wrong.

This is the same one-line drop that landed inside #12711. Isolated here so pin / combo-split / moonshot do not have to carry glm.ts.

Fix

Drop undefined, undefined, 65536. Last argument stays suppressThinkClose. Comment now matches the helper.

Tests

  • tests/unit/glm-sse-transform-arity.test.ts — source guard: helper has no highWaterMark slot; GLM call site has no 65536 and ends on suppressThinkClose.
  • tests/unit/glm-think-close-marker-leak.test.ts still green (3/3).
  • Injection: put 65536 back → arity test red. Restore → 2/2 green.

KeyHealth / translateJsonResponse unused on tip are not in this diff.

Not in this PR

Contributor only — not merging.

createSSETransformStreamWithLogger takes 15 parameters. The 65536
positional was a TS2554 and never reached TransformStream. Last arg
is suppressThinkClose.

Signed-off-by: Minxi Hou <houminxi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant