Skip to content

web chat: normalize CRLF in frameBody so the roster strips from user bubbles (CL-9909) - #1100

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-9909-crlf-roster
Oct 5, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-9909-crlf-roster

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Problem: @corbits/mailbox builds frames with CRLF; frameBody kept the \r, so stripRoster never matched and user bubbles showed the Participants block and to instruction.

Fix: frameBody normalizes CRLF to LF (covers agent bodies too).

Reproduced: red test builds a frame with buildMailFrame + appendRoster, runs frameBody then stripRoster; failed on main with \r\n in the output, passes now.

Gates: focused tests only (load avg >70): bun test src/chat in apps/web, lint, fmt:check, typecheck (since origin/main) all green.

@linear-code

linear-code Bot commented Oct 4, 2026

Copy link
Copy Markdown

CL-9909

@TheGreatAxios
TheGreatAxios merged commit 24d709d into main Oct 5, 2026
3 checks passed
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