From 0f4771fe19b41aec28166d32c485c64cd3af435f Mon Sep 17 00:00:00 2001 From: Luo Peng Date: Sun, 1 Mar 2026 08:00:24 +0800 Subject: [PATCH] fix(ui): Display newlines correctly in tool descriptions (#22363) Add `whiteSpace: 'pre-wrap'` to tool description rendering to preserve newlines. This fixes #22362. --- .../view_logs/ToolsSection/FormattedToolView.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/components/view_logs/ToolsSection/FormattedToolView.tsx b/ui/litellm-dashboard/src/components/view_logs/ToolsSection/FormattedToolView.tsx index 2f036a2a34..c159232f71 100644 --- a/ui/litellm-dashboard/src/components/view_logs/ToolsSection/FormattedToolView.tsx +++ b/ui/litellm-dashboard/src/components/view_logs/ToolsSection/FormattedToolView.tsx @@ -58,7 +58,14 @@ export function FormattedToolView({ tool }: FormattedToolViewProps) { {/* Description */} {tool.description && (
- {tool.description} + + {tool.description} +
)}