Skip to content

fix(protocol): preserve leading BOM in session IDs - #146

Merged
vincentkoc merged 1 commit into
mainfrom
fix/libterminal-session-id-bom-20261103
Nov 3, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/libterminal-session-id-bom-20261103

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Summary

A leading U+FEFF in an opaque session ID was silently stripped during frame decoding, routing the frame under a different identity. Use a dedicated UTF-8 decoder that preserves it, while retaining existing JSON BOM handling. Regression tests cover leading and repeated BOMs plus ordinary Unicode. Production delta: +2 lines. This restores the existing round-trip identity contract.

Validation

  • Full CI passed for merged PR head 5c0309c7c05fba1a7f5e185ef684f35b20e7690e.
  • Independent P0–P3 autoreview: scoped-clean for 7dde0ab709625788eac644df6a2d6bd819c4cb42. Rebased code and test patches were verified unchanged.
  • Combined six-fix integration passed: 185 unit/integration tests, 10 browser cases, build, types, lint, package checks, and the Linux/Windows/macOS matrix.
  • Changelog included. No release.

@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc
vincentkoc marked this pull request as ready for review November 3, 2026 12:46
@vincentkoc
vincentkoc requested a review from a team as a code owner November 3, 2026 12:46
@vincentkoc
vincentkoc force-pushed the fix/libterminal-session-id-bom-20261103 branch from 7dde0ab to 5c0309c Compare November 3, 2026 12:49
@vincentkoc
vincentkoc merged commit fbb6917 into main Nov 3, 2026
14 checks passed
@vincentkoc
vincentkoc deleted the fix/libterminal-session-id-bom-20261103 branch November 3, 2026 12:51
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