fix(team): trim verbose MCP description from permission noise rows

Remove tool description from permission_request noise label - tool name
alone is clear enough. MCP tools have long technical descriptions that
flood the Messages panel.
This commit is contained in:
iliya 2026-03-30 15:56:49 +03:00
parent 8808a3ab88
commit d2487e41c9

View file

@ -252,9 +252,7 @@ function getNoiseLabel(parsed: StructuredMessage): string | null {
if (type === 'permission_request') {
const toolName = getStringField(parsed, 'tool_name');
const description = getStringField(parsed, 'description');
const label = toolName ? `Permission: ${toolName}` : 'Permission request';
return description ? `${label}${description}` : label;
return toolName ? `Permission: ${toolName}` : 'Permission request';
}
if (type === 'permission_response') {