Skip to content

fix(webui): truncate long tool params in session chat cards#289

Merged
duguwanglong merged 1 commit into
devfrom
fix/webui-truncate-long-tool-params
May 19, 2026
Merged

fix(webui): truncate long tool params in session chat cards#289
duguwanglong merged 1 commit into
devfrom
fix/webui-truncate-long-tool-params

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

@xiami762 xiami762 commented May 19, 2026

Summary

  • Truncate long tool title and input summaries in session chat tool cards (default 120 chars) so bash commands no longer blow out the layout
  • Add min-w-0 / flex truncation on the card summary row; full text remains available via hover title
  • Cap expanded input JSON preview with max-h-48 overflow-y-auto, matching tool output

Prevent bash commands and large tool inputs from expanding the tool card
summary; cap input JSON preview height and keep full values on hover.

Co-authored-by: Cursor <cursoragent@cursor.com>
@duguwanglong duguwanglong merged commit 8ea87a9 into dev May 19, 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.

2 participants