Repository navigation
fix(web): keep lettered and bullet-character lines apart in assistant replies - #136
Merged
nullStack65 merged 1 commit intoNov 20, 2026
Merged
Conversation
… replies Markdown has no lettered lists. An assistant reply that wrote "A. …" and "B. …" on consecutive lines rendered as one solid paragraph, because CommonMark treats single newlines as spaces. Assistant messages now keep line breaks when two or more consecutive lines start with a letter marker (A. / b) / (c)) or a bullet character (•), outside code fences. Model: claude-opus-5-5 Task: fix Agent: claude-code Lane: CLO-977 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Kameron saw a reply render as one solid block (Linear CLO-977, plain-English output for every model). The reply listed nine items as "A. …", "B. …" on separate lines. Markdown has no lettered lists, and CommonMark joins single newlines into one paragraph, so T3 showed the nine items as one run-on paragraph.
What changes
Assistant messages now keep their line breaks when two or more consecutive lines start with a letter marker (
A.,b),(c)) or a bullet character (•). Fenced code is ignored. The check extendsshouldPreserveAssistantLineBreaks, which already turns on the existingremark-breaksplugin for "★ Insight" blocks. Search highlighting (threadFindText) uses the same function, so it stays consistent.Trade-offs
Other options considered
remark-breakspath already handles.remark-breaksfor every assistant message. Simplest, but it changes rendering for any provider that hard-wraps its prose.Verification
vp test run src/markdownPipeline.test.tsinpackages/shared: 33 passed, including 9 new cases for the check and one that confirmsbreaknodes appear once breaks are on.vp test run src/threadFindTextinpackages/shared: 11 passed.pnpm run typecheckinpackages/shared: passed.vp fmton the changed files: applied.vp lint. On this host Node 22 cannot load the repository's TypeScript oxlint plugin; CI runs it.Model: claude-opus-5-5
Task: fix
Agent: claude-code (CLO-977)
Harness: t3/claude
Requirement: https://linear.app/closura/issue/CLO-977
Human review: not requested
Deploy: fleet
🤖 Generated with Claude Code