Skip to content

fix: prevent tool call results from overflowing chat viewport#73

Closed
tellaho wants to merge 2 commits intomainfrom
tho/fix-tool-call-overflow
Closed

fix: prevent tool call results from overflowing chat viewport#73
tellaho wants to merge 2 commits intomainfrom
tho/fix-tool-call-overflow

Conversation

@tellaho
Copy link
Copy Markdown
Collaborator

@tellaho tellaho commented Apr 2, 2026

Summary

  • Add min-w-0 to message content flex containers in MessageBubble so long tool call output (e.g. wide <pre> blocks) respects parent width and wraps instead of overflowing the chat viewport.

Test plan

  • Send a message that triggers a tool call with long single-line output
  • Verify the output wraps within the chat bubble instead of causing horizontal overflow

🤖 Generated with Claude Code

Add min-w-0 to message content containers so flexbox children
respect the parent width and long content wraps properly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tellaho tellaho requested a review from wesbillman as a code owner April 2, 2026 05:12
Take main's version of the content div which includes both the
overflow fix (w-full min-w-0) and the artifact link click handler.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tellaho tellaho closed this Apr 2, 2026
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