diff --git a/src/components/agent/AgentExecutionPanel.tsx b/src/components/agent/AgentExecutionPanel.tsx deleted file mode 100644 index 54ada33a5..000000000 --- a/src/components/agent/AgentExecutionPanel.tsx +++ /dev/null @@ -1,236 +0,0 @@ -/** - * Agent Execution Panel Component - * - * Detailed view of agent execution progress, tool executions, and results. - * Expandable panel that shows real-time execution details. - */ - -import { memo, useMemo } from 'react'; -import { useAppSelector } from '../../store/hooks'; -import { - selectActiveExecutionForThread, - selectExecutionHistoryForThread, - selectAgentModeForThread -} from '../../store/agentSlice'; -import type { AgentToolExecution } from '../../types/agent'; - -interface AgentExecutionPanelProps { - threadId: string; - className?: string; - maxHeight?: string; -} - -const formatDuration = (ms: number): string => { - if (ms < 1000) return `${ms}ms`; - if (ms < 60000) return `${(ms / 1000).toFixed(1)}s`; - return `${Math.floor(ms / 60000)}m ${Math.floor((ms % 60000) / 1000)}s`; -}; - -const getStatusIcon = (status: string) => { - switch (status) { - case 'pending': - return ( - - ); - case 'running': - return ( -
- ); - case 'success': - return ( - - ); - case 'error': - return ( - - ); - default: - return ( - - ); - } -}; - -const ToolExecutionItem = memo<{ toolExecution: AgentToolExecution }>(({ toolExecution }) => { - const duration = toolExecution.executionTimeMs || (toolExecution.endTime ? toolExecution.endTime - toolExecution.startTime : null); - - return ( -
- {JSON.stringify(JSON.parse(toolExecution.arguments), null, 2)}
-
- No agent executions yet
-Send a message to start an agent task
-