Repository navigation
fix: show a message with line breaks once in the conversation - #127
Merged
TheGreatAxios merged 2 commits intoNov 4, 2026
Merged
TheGreatAxios merged 2 commits into
TheGreatAxios merged 2 commits into
Conversation
TheGreatAxios
force-pushed
the
cl-12056-show-a-message-with-line-breaks-once-instead-of-twice-in-the
branch
2 times, most recently
from
November 4, 2026 05:00
ed9c94e to
1f286fe
Compare
TheGreatAxios
marked this pull request as ready for review
November 4, 2026 05:00
TheGreatAxios
force-pushed
the
cl-12056-show-a-message-with-line-breaks-once-instead-of-twice-in-the
branch
from
November 4, 2026 06:08
1f286fe to
bb1aa18
Compare
TheGreatAxios
force-pushed
the
cl-12056-show-a-message-with-line-breaks-once-instead-of-twice-in-the
branch
from
November 4, 2026 06:27
bb1aa18 to
ab33bbe
Compare
TheGreatAxios
force-pushed
the
cl-12056-show-a-message-with-line-breaks-once-instead-of-twice-in-the
branch
from
November 4, 2026 06:50
ab33bbe to
cfd937c
Compare
TheGreatAxios
force-pushed
the
cl-12056-show-a-message-with-line-breaks-once-instead-of-twice-in-the
branch
from
November 4, 2026 07:04
cfd937c to
3ad6dfb
Compare
TheGreatAxios
force-pushed
the
cl-12056-show-a-message-with-line-breaks-once-instead-of-twice-in-the
branch
from
November 4, 2026 07:14
3ad6dfb to
3633d44
Compare
|
Triage: Pass No changes needed from you. A maintainer will review this pull request. |
corbits-triage
Bot
dismissed stale reviews from themself
November 4, 2026 07:35
Nothing triage asked to change still fails, so this request no longer stands.
TheGreatAxios
force-pushed
the
cl-12056-show-a-message-with-line-breaks-once-instead-of-twice-in-the
branch
2 times, most recently
from
November 4, 2026 07:57
7ba5fcf to
31d5cd4
Compare
Mail delivery stores a message's line breaks as CRLF, and the conversation mirror returned them unchanged. The project page matches the message it sent against the mirror's copy by exact text, so a message with line breaks never matched and showed twice, and the extra copy kept "Thinking…" on. The mirror reads a person's text back as mail delivers it, by a shared rule: LF line breaks, no spaces or tabs at the end of a line. The specialist-ended and resume-context markers are written with LF, so the mirror now finds them in delivered text. The turn length limit and its clip move to the shared schema, so the page can clip a sent message the same way.
Mail delivery drops spaces and tabs at the end of each line, so a message with them never matched the conversation's copy and showed twice. The page compares each message it sent, including one with files and the opening idea, with the conversation by the text mail delivers, clipped to a turn's length. Only a coordinator turn later than the latest one the page held when it sent the message can be its copy, so a repeated message shows as new and keeps its own files.
TheGreatAxios
force-pushed
the
cl-12056-show-a-message-with-line-breaks-once-instead-of-twice-in-the
branch
from
November 4, 2026 08:22
31d5cd4 to
b81706b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
deliveredTextrule in@corbits-builder/schemas/conversation: LF line breaks (CRLF and lone CR become LF), no spaces or tabs at the end of a line, trimmed. The rule scans each line from the end, so a long run of blanks costs linear time.Verification
bun run lint,format:check,typecheck,test(243 pass),pins:verifyandvendor:verifypass.deliveredTextof it; it fails if the rule strips too much or too little.deliveredTextof a line with 200,000 blanks returns in linear time; the previous regex took over 30 seconds.Closes CL-12056