Draft
Conversation
…nd path truncation - Add collapsible description in McpToolRow when in chat context - Truncate workspace root paths in MCP arguments for cleaner display - Add expand/collapse toggle button with chevron icon - Add tooltip with full description on hover - Add new translation keys for expand/collapse actions - Add tests for collapsible description functionality Addresses #11155
2 tasks
Contributor
Author
Review complete. No issues found. The latest commit adds missing Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
|
@roomote fix missing translations: |
Contributor
Author
Added missing |
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.



This PR attempts to address Issue #11155 by implementing the following improvements to reduce UI clutter from MCP tool calls:
Changes
1. Collapsible Tool Descriptions in Chat Context
line-clamp-22. Workspace Path Truncation in Arguments
./Files Modified
webview-ui/src/components/mcp/McpToolRow.tsx- Added collapsible description functionalitywebview-ui/src/components/chat/McpExecution.tsx- Added path truncation utilitywebview-ui/src/i18n/locales/en/mcp.json- Added translation keys for expand/collapsewebview-ui/src/components/mcp/__tests__/McpToolRow.spec.tsx- Added tests for collapsible descriptionTrade-offs
Feedback and guidance are welcome!
Important
This PR reduces MCP tool call UI clutter by adding collapsible descriptions and truncating workspace paths, with updates to translations and tests.
McpToolRow.tsx: Descriptions in chat context are now collapsible with a chevron toggle and tooltip for full text.McpExecution.tsx: Truncates workspace paths in tool arguments to./for cleaner display.McpToolRow.spec.tsx: Added tests for collapsible description functionality.mcp.jsonin multiple locales to include keys for "expand" and "collapse" descriptions.This description was created by
for 745aeb3. You can customize this summary. It will automatically update as commits are pushed.