Skip to content

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

Merged
diegosouzapw merged 1 commit into
diegosouzapw:release/v3.8.51from
HouMinXi:fix/glm-sse-transform-arity
Sep 7, 2026
Merged

diegosouzapw merged 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.

@HouMinXi
HouMinXi force-pushed the fix/glm-sse-transform-arity branch from 271ec3a to eba6c00 Compare September 5, 2026 14:31
@HouMinXi

HouMinXi commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto upstream/release/v3.8.51 @ 9d1a896c6 (#12670).

range-diff every unique commit =. All rewritten commits GPG G. behind=0 vs tip.

Own tests re-run on the new base. --force-with-lease to the previous fork SHA.

⚠️ base-red inherited: #12732 (FQG / unit shards / changelog-integrity / glm arity until #12770 lands). Files this PR does not touch.

HouMinXi added a commit to HouMinXi/OmniRoute that referenced this pull request Sep 6, 2026
Cherry-pick onto the deploy recut conflicted with diegosouzapw#12770 on
open-sse/executors/glm.ts. This PR only fixes ConfirmModal forwarding
the click event into onAfter. Restore glm.ts to the release tip so
the arity fix stays on diegosouzapw#12770.

Signed-off-by: Minxi Hou <houminxi@gmail.com>
@HouMinXi
HouMinXi force-pushed the fix/glm-sse-transform-arity branch from eba6c00 to d2758f5 Compare September 6, 2026 08:09
HouMinXi added a commit to HouMinXi/OmniRoute that referenced this pull request Sep 6, 2026
Cherry-pick onto the deploy recut conflicted with diegosouzapw#12770 on
open-sse/executors/glm.ts. This PR only fixes ConfirmModal forwarding
the click event into onAfter. Restore glm.ts to the release tip so
the arity fix stays on diegosouzapw#12770.

Signed-off-by: Minxi Hou <houminxi@gmail.com>
@HouMinXi

HouMinXi commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto release/v3.8.51 tip f9a1cc8a9 (#12682 / #12691 / #12834).

eba6c0042 → d2758f511. range-diff 1 commit =. GPG G. No file overlap with the three landed commits.

HouMinXi added a commit to HouMinXi/OmniRoute that referenced this pull request Sep 7, 2026
Cherry-pick onto the deploy recut conflicted with diegosouzapw#12770 on
open-sse/executors/glm.ts. This PR only fixes ConfirmModal forwarding
the click event into onAfter. Restore glm.ts to the release tip so
the arity fix stays on diegosouzapw#12770.

Signed-off-by: Minxi Hou <houminxi@gmail.com>
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>
@HouMinXi
HouMinXi force-pushed the fix/glm-sse-transform-arity branch from d2758f5 to e55abbf Compare September 7, 2026 02:36
@HouMinXi

HouMinXi commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto upstream/release/v3.8.51 b345c7f6c (#12870 OpenCode v2 plugin).

  • d2758f51178 → e55abbf67ee
  • range-diff identity (eq=1); all commits GPG G
  • 1 unique commit(s) ahead, 0 behind
  • --force-with-lease to HouMinXi:fix/glm-sse-transform-arity

@diegosouzapw
diegosouzapw merged commit d857bd0 into diegosouzapw:release/v3.8.51 Sep 7, 2026
9 of 16 checks passed
@HouMinXi
HouMinXi deleted the fix/glm-sse-transform-arity branch September 7, 2026 13:27
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…2770)

Validado numa worktree combinada com as 16 PRs desta leva sobre `release/v3.8.51`: typecheck:core limpo, check-file-size e check-changelog-integrity OK, complexity 2788/3218 e cognitive 1261/1437 (ambos sob a baseline), ESLint 0 erros nos 152 arquivos alterados, 771 testes unitários focados, 49 de integração e a suíte vitest:ui completa (2149) verdes.

O `65536` era o 16º posicional de um helper com 15 parâmetros — `TS2554` vivo no tip (`open-sse/executors/glm.ts:244`, confirmado aqui antes do board). O teste de guarda de aridade é o que impede a reincidência: ele checa a assinatura do helper e o call site, não o comportamento, que é exatamente onde o erro morava.

Obrigado por isolar isso do diegosouzapw#12711 em vez de deixar o `glm.ts` viajar junto com pin/combo-split/moonshot.
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.

2 participants