From 5e8c70361e038c9bb00ea8e597790dab76e1d856 Mon Sep 17 00:00:00 2001 From: Soumyadas15 Date: Sun, 1 Jun 2025 11:19:54 +0530 Subject: [PATCH 1/3] chore(ui): add agent name in tool view & chat input --- .../projects/[projectId]/thread/[threadId]/page.tsx | 5 ++++- .../projects/[projectId]/thread/_components/ThreadLayout.tsx | 3 +++ frontend/src/components/thread/tool-call-side-panel.tsx | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/(dashboard)/projects/[projectId]/thread/[threadId]/page.tsx b/frontend/src/app/(dashboard)/projects/[projectId]/thread/[threadId]/page.tsx index 4d00b7ae..05c1e96d 100644 --- a/frontend/src/app/(dashboard)/projects/[projectId]/thread/[threadId]/page.tsx +++ b/frontend/src/app/(dashboard)/projects/[projectId]/thread/[threadId]/page.tsx @@ -556,6 +556,7 @@ export default function ThreadPage({ debugMode={debugMode} isMobile={isMobile} initialLoadCompleted={initialLoadCompleted} + agentName={agent && agent.name} > @@ -598,6 +599,7 @@ export default function ThreadPage({ debugMode={debugMode} isMobile={isMobile} initialLoadCompleted={initialLoadCompleted} + agentName={agent && agent.name} > diff --git a/frontend/src/app/(dashboard)/projects/[projectId]/thread/_components/ThreadLayout.tsx b/frontend/src/app/(dashboard)/projects/[projectId]/thread/_components/ThreadLayout.tsx index b891a1a0..5d42893f 100644 --- a/frontend/src/app/(dashboard)/projects/[projectId]/thread/_components/ThreadLayout.tsx +++ b/frontend/src/app/(dashboard)/projects/[projectId]/thread/_components/ThreadLayout.tsx @@ -38,6 +38,7 @@ interface ThreadLayoutProps { debugMode: boolean; isMobile: boolean; initialLoadCompleted: boolean; + agentName?: string; } export function ThreadLayout({ @@ -71,6 +72,7 @@ export function ThreadLayout({ debugMode, isMobile, initialLoadCompleted, + agentName }: ThreadLayoutProps) { return (
@@ -114,6 +116,7 @@ export function ThreadLayout({ renderToolResult={renderToolResult} isLoading={!initialLoadCompleted || isLoading} onFileClick={onViewFiles} + agentName={agentName} /> {sandboxId && ( diff --git a/frontend/src/components/thread/tool-call-side-panel.tsx b/frontend/src/components/thread/tool-call-side-panel.tsx index d61578c9..bd09f43b 100644 --- a/frontend/src/components/thread/tool-call-side-panel.tsx +++ b/frontend/src/components/thread/tool-call-side-panel.tsx @@ -443,7 +443,7 @@ export function ToolCallSidePanel({

- Suna's Computer + {agentName ? `${agentName}'s Computer` : 'Suna\'s Computer'}

@@ -490,7 +490,7 @@ export function ToolCallSidePanel({

- Suna's Computer + {agentName ? `${agentName}'s Computer` : 'Suna\'s Computer'}