From 579ff50256476c814b025914b27a86a9a6d4ebab Mon Sep 17 00:00:00 2001 From: Jon Saad-Falcon <41205309+jonsaadfalcon@users.noreply.github.com> Date: Tue, 31 Mar 2026 21:29:51 -0700 Subject: [PATCH] feat: add chat/edit/delete buttons and model status to agent cards Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/pages/AgentsPage.tsx | 127 +++++++++++++++++++++++++++++- 1 file changed, 125 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/AgentsPage.tsx b/frontend/src/pages/AgentsPage.tsx index aa5ab4aa..bc46c9df 100644 --- a/frontend/src/pages/AgentsPage.tsx +++ b/frontend/src/pages/AgentsPage.tsx @@ -57,6 +57,7 @@ import { Database, Copy, Check, + Pencil, } from 'lucide-react'; import { SOURCE_CATALOG } from '../types/connectors'; import type { ConnectRequest } from '../types/connectors'; @@ -715,6 +716,8 @@ function AgentCard({ onRun, onRecover, onDelete, + onChat, + onEdit, }: { agent: ManagedAgent; onClick: () => void; @@ -723,6 +726,8 @@ function AgentCard({ onRun: (id: string) => void; onRecover: (id: string) => void; onDelete: (id: string) => void; + onChat: (id: string) => void; + onEdit: (id: string) => void; }) { const canPause = agent.status === 'running' || agent.status === 'idle'; const canResume = agent.status === 'paused'; @@ -794,6 +799,22 @@ function AgentCard({ {/* Row 4: Actions */}
e.stopPropagation()}> + + @@ -3028,6 +3129,20 @@ export function AgentsPage() { Recover )} +
@@ -3331,6 +3446,14 @@ export function AgentsPage() { onRun={handleRun} onRecover={handleRecover} onDelete={handleDelete} + onChat={(id) => { + setSelectedAgentId(id); + setDetailTab('interact'); + }} + onEdit={(id) => { + setSelectedAgentId(id); + setDetailTab('overview'); + }} /> ))}