feat(conversations): Collapse tool calls in message bubbles#109176
Merged
priscilawebdev merged 3 commits intomasterfrom Feb 24, 2026
Merged
feat(conversations): Collapse tool calls in message bubbles#109176priscilawebdev merged 3 commits intomasterfrom
priscilawebdev merged 3 commits intomasterfrom
Conversation
Show at most 3 tool calls in assistant message bubbles, with a toggle to expand the rest. When hidden tool calls include errors, display a failed count in red next to the toggle. Tool call logic is extracted into MessageToolCalls to keep MessagesPanel focused on layout. The table (toolTags.tsx) is unchanged and keeps its existing row-height-based collapse behaviour. Co-Authored-By: Claude <noreply@anthropic.com>
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.
static/app/views/insights/pages/conversations/components/messageToolCalls.tsx
Outdated
Show resolved
Hide resolved
The failed count string was split across raw JSX and a separate t()
call, preventing translators from reordering the number and adjective.
Consolidate into a single t('(%s failed)', failedCount) call, consistent
with the existing t('+%s more', hiddenCount) pattern on the same line.
Co-Authored-By: Claude <noreply@anthropic.com>
obostjancic
approved these changes
Feb 24, 2026
mchen-sentry
pushed a commit
that referenced
this pull request
Feb 24, 2026
Show at most 3 tool calls in assistant message bubbles, with a toggle to expand the rest. When hidden tool calls include errors, display a failed count in red next to the toggle. Tool call logic is extracted into MessageToolCalls to keep MessagesPanel focused on layout. The table (toolTags.tsx) is unchanged and keeps its existing row-height-based collapse behaviour.
wedamija
pushed a commit
that referenced
this pull request
Feb 24, 2026
Show at most 3 tool calls in assistant message bubbles, with a toggle to expand the rest. When hidden tool calls include errors, display a failed count in red next to the toggle. Tool call logic is extracted into MessageToolCalls to keep MessagesPanel focused on layout. The table (toolTags.tsx) is unchanged and keeps its existing row-height-based collapse behaviour.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Show at most 3 tool calls in assistant message bubbles, with a toggle to expand the rest. When hidden tool calls include errors, display a failed count in red next to the toggle.
Tool call logic is extracted into MessageToolCalls to keep MessagesPanel focused on layout. The table (toolTags.tsx) is unchanged and keeps its existing row-height-based collapse behaviour.
Before
After
Screen.Recording.2026-02-24.at.10.46.06.mov
closes https://linear.app/getsentry/issue/TET-1992/collapse-tool-calls-in-conversations-somehow