fix(conversations): Improve tool badge rendering and overflow behavior#115880
Merged
obostjancic merged 16 commits intoMay 21, 2026
Merged
Conversation
- Add min-width: 0 to Tag's inner Text so text-overflow: ellipsis works
when the tag is width-constrained
- Cap tool badges in ToolTags (index page) with maxWidth: 100% so long
names show '...' instead of being clipped by the container boundary
- Cap visible tool badges in ConversationAggregatesBar (detail page) at
160px with a tooltip showing the full name on overflow
- Replace the non-actionable DropdownMenu for extra tool names with a
Tooltip — clicking the dropdown previously highlighted items but did
nothing, which was confusing
Refs LINEAR-TET-2365
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Contributor
📊 Type Coverage Diff✅ No new type safety issues introduced. Coverage: 93.61% |
…ow tooltip The Tag component's inner Text was display:flex, which prevents text-overflow:ellipsis from applying to text children (that property only works on block containers). Switching Text to a plain block element lets the existing overflow/ellipsis rules actually fire when TagPill is width-constrained. Also updates the '+N more' tooltip for tool names to render actual Tag badges instead of a plain comma-separated string. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
The selection outline was only on the ClickableTag, making it look like only the badge was interactive. Moved the isSelected outline to ToolCallLine so the whole row highlights on selection. Dropped the ClickableTag wrapper since the row is the clickable unit. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…of them Tags now have flex-shrink:0 so they take their natural width. Only the last visible tag gets flex-shrink:1 + min-width:0 so it is the only one that yields and shows ellipsis when the row runs out of space.
TkDodo
reviewed
May 21, 2026
Comment on lines
+417
to
+422
| const MoreToolsTooltip = styled('div')` | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| gap: ${p => p.theme.space.xs}; | ||
| padding: ${p => p.theme.space.xs} 0; | ||
| `; |
Collaborator
There was a problem hiding this comment.
this should please be the Flex primitive component - no more styled divs if possible.
| isHoverable | ||
| skipWrapper | ||
| > | ||
| <Text size="sm" variant="muted" wrap="nowrap"> |
Collaborator
There was a problem hiding this comment.
could we use <InfoText> here instead of Text with a tooltip ?
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 83ce7c3. Configure here.
matejminar
approved these changes
May 21, 2026
JonasBa
pushed a commit
that referenced
this pull request
May 21, 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.

Fixes tool badge truncation and overflow in the AI Conversations index and detail views, and makes the entire "Called tool" row in messages selectable instead of just the badge.
Closes TET-2365