From 3f52efe4b8b798e4c461970a6dc69e02efdb7b65 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 12 Sep 2025 10:48:37 -0500 Subject: [PATCH] Add custom icon and text for deploy_project --- src/components/AIMessageItem.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/AIMessageItem.tsx b/src/components/AIMessageItem.tsx index 9f43e9ea..d564a849 100644 --- a/src/components/AIMessageItem.tsx +++ b/src/components/AIMessageItem.tsx @@ -1,6 +1,6 @@ import { memo, useState } from 'react'; import { Streamdown } from 'streamdown'; -import { Wrench, Eye, FileText, Edit, Package, PackageMinus, GitCommit, BookOpen, Download, Hash, Tag, Network, List, Plus, Terminal } from 'lucide-react'; +import { Wrench, Eye, FileText, Edit, Package, PackageMinus, GitCommit, BookOpen, Download, Hash, Tag, Network, List, Plus, Terminal, Globe } from 'lucide-react'; import type { AIMessage } from '@/lib/SessionManager'; import { cn } from '@/lib/utils'; import OpenAI from 'openai'; @@ -131,6 +131,11 @@ export const AIMessageItem = memo(({ icon: Plus, title: args.range ? `Generated ${args.range} kind` : 'Generated Kind' }; + case 'deploy_project': + return { + icon: Globe, + title: args.deployServer ? `Deployed to ${args.deployServer}` : 'Deployed Project' + }; default: return { icon: Wrench, @@ -165,6 +170,7 @@ export const AIMessageItem = memo(({ const toolInfo = getToolInfo(); const IconComponent = toolInfo.icon; + // Regular tool message rendering return (
{/* -mt-2 to make it snug with the previous assistant message */}