Skip to content

feat(conversations): Collapse tool calls in message bubbles#109176

Merged
priscilawebdev merged 3 commits intomasterfrom
priscila/feat/collapse-conversations-tool-calls
Feb 24, 2026
Merged

feat(conversations): Collapse tool calls in message bubbles#109176
priscilawebdev merged 3 commits intomasterfrom
priscila/feat/collapse-conversations-tool-calls

Conversation

@priscilawebdev
Copy link
Member

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

image

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

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>
@linear
Copy link

linear bot commented Feb 24, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 24, 2026
@priscilawebdev priscilawebdev marked this pull request as ready for review February 24, 2026 09:48
@priscilawebdev priscilawebdev requested a review from a team as a code owner February 24, 2026 09:48
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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>
@priscilawebdev priscilawebdev merged commit 391ab2e into master Feb 24, 2026
63 checks passed
@priscilawebdev priscilawebdev deleted the priscila/feat/collapse-conversations-tool-calls branch February 24, 2026 11:11
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.
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants