Repository navigation
fix(cloud-agent-next): reflow hard-wrapped commit message bodies - #7268
Merged
Merged
Conversation
Commit message bodies are hard-wrapped at ~72 columns in git. The commit details popover rendered them with whitespace-pre-wrap in a narrow 384px panel, so each stored line wrapped again mid-sentence, leaving orphaned words on their own lines. Collapse single newlines within a paragraph into spaces so the body reflows to the container width, while keeping blank lines as paragraph breaks.
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Reviewed the commit-body reflow change in Files Reviewed (2 files)
Reviewed by deepseek-v4.1-flash · Input: 35.8K · Output: 4.7K · Cached: 174.3K Review guidance: REVIEW.md from base branch |
iscekic
approved these changes
Oct 8, 2026
This was referenced Oct 9, 2026
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.
Problem
Commit message bodies in the Cloud Agent chat are hard-wrapped at ~72 columns in git. The commit details popover rendered them verbatim with
whitespace-pre-wrapinside a narrow 384px (w-96) panel, so every stored line wrapped a second time mid-sentence. This left orphaned fragments likesanitized, and,repository,diagnostics, andobservabilityon their own lines.Fix
In
CommitDetails, normalize the body before rendering:This matches how git/GitHub present commit bodies and removes the double-wrap artifact. Message content stays plain text and HTML-escaped.
Verification
ConversationMessages.test.ts: all 79 tests pass, including a new case asserting hard-wrapped lines are joined and paragraph breaks are preserved.oxlinton changed files: 0 warnings / 0 errors.tsgotypecheck: passes.Note: the full web Jest suite requires PostgreSQL; it was not reachable in this environment, so the focused component suite was run with a temporary config that skips the DB setup hooks.