From d74a23d54c1041dcaadaf0054be343a908aab36e Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Sun, 11 Jan 2026 02:16:56 +1000 Subject: [PATCH] fix: show tool outputs in embedded tool calls and improve light mode styling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Build toolCallId -> output map from TOOL messages - Pass outputs to embedded tool calls in ASSISTANT messages - Skip rendering separate TOOL messages (now shown with their calls) - Improve light mode contrast for tool cards: - Use slate-50 background instead of gray - Better status badge colors (green-700, blue-700 in light mode) - Better error colors (red-600 in light mode) - Better output text colors (emerald-700, red-600 in light mode) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../agents/[id]/chat/[chatId]/page.tsx | 162 +++++++++--------- 1 file changed, 85 insertions(+), 77 deletions(-) diff --git a/apps/web/src/app/dashboard/agents/[id]/chat/[chatId]/page.tsx b/apps/web/src/app/dashboard/agents/[id]/chat/[chatId]/page.tsx index 8735a60..fabee03 100644 --- a/apps/web/src/app/dashboard/agents/[id]/chat/[chatId]/page.tsx +++ b/apps/web/src/app/dashboard/agents/[id]/chat/[chatId]/page.tsx @@ -86,10 +86,14 @@ function ToolCallCard({ const effectiveStatus = hasError ? 'error' : toolCall.status; const statusColors = { - pending: 'bg-yellow-500/20 text-yellow-400 border-yellow-500/30', - running: 'bg-blue-500/20 text-blue-400 border-blue-500/30', - success: 'bg-green-500/20 text-green-400 border-green-500/30', - error: 'bg-red-500/20 text-red-400 border-red-500/30', + pending: + 'bg-yellow-100 dark:bg-yellow-500/20 text-yellow-700 dark:text-yellow-400 border-yellow-300 dark:border-yellow-500/30', + running: + 'bg-blue-100 dark:bg-blue-500/20 text-blue-700 dark:text-blue-400 border-blue-300 dark:border-blue-500/30', + success: + 'bg-green-100 dark:bg-green-500/20 text-green-700 dark:text-green-400 border-green-300 dark:border-green-500/30', + error: + 'bg-red-100 dark:bg-red-500/20 text-red-700 dark:text-red-400 border-red-300 dark:border-red-500/30', }; const statusIcons: Record = { @@ -109,13 +113,13 @@ function ToolCallCard({ return (
{/* Header */}