Skip to content

fix: prevent agent/bot review comments from overflowing their containers#120

Merged
stylessh merged 1 commit intostylessh:mainfrom
harivansh-afk:fix/agent-comment-overflow
Apr 14, 2026
Merged

fix: prevent agent/bot review comments from overflowing their containers#120
stylessh merged 1 commit intostylessh:mainfrom
harivansh-afk:fix/agent-comment-overflow

Conversation

@harivansh-afk
Copy link
Copy Markdown
Contributor

Summary

Fixes #116

Long lines in bot/agent review comments (file paths, URLs, inline code) were breaking out of the comment bubble and annotation wrapper divs, causing the garbled rendering shown in the issue screenshot.

  • Add break-words to the Markdown component so all long text wraps within its container
  • Add overflow-hidden to the review comment thread wrapper in the PR activity timeline (pull-detail-activity.tsx)
  • Add overflow-hidden to the review comment thread wrapper in the file diff review view (review-file-diff-block.tsx)

Test plan

  • Open a PR that has review comments from a bot/agent (e.g. Devin, Copilot, CodeRabbit)
  • Verify review comments with long lines (file paths, code suggestions) no longer overflow outside their container
  • Verify normal human review comments still render correctly
  • Check both the PR activity timeline and the file diff review view

@stylessh stylessh merged commit 90c7df3 into stylessh:main Apr 14, 2026
1 check 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.

Comments and reviews not renderinfg

2 participants