diff --git a/src/components/layout/StatusBar.tsx b/src/components/layout/StatusBar.tsx
index c95d4a5..8b22ae0 100644
--- a/src/components/layout/StatusBar.tsx
+++ b/src/components/layout/StatusBar.tsx
@@ -27,11 +27,12 @@ export function StatusBar(): React.JSX.Element {
-
+
{AGENT_STATUS_LABELS[agentStatus]}
diff --git a/src/components/trace/TokenUsage.tsx b/src/components/trace/TokenUsage.tsx
index 6a552f8..6fef015 100644
--- a/src/components/trace/TokenUsage.tsx
+++ b/src/components/trace/TokenUsage.tsx
@@ -64,17 +64,17 @@ export function TokenUsage(): React.JSX.Element {
function StatCard({ label, value, color }: { label: string; value: string; color: string }) {
return (
-
+
{label}
- {value}
+ {value}
);
}
function SummaryRow({ label, value, highlight, color }: { label: string; value: string; highlight?: boolean; color?: string }) {
return (
-
+
{label}
{value}
diff --git a/src/components/trace/TraceViewer.tsx b/src/components/trace/TraceViewer.tsx
index a84508a..43d1dae 100644
--- a/src/components/trace/TraceViewer.tsx
+++ b/src/components/trace/TraceViewer.tsx
@@ -6,16 +6,13 @@ import { Box, Typography, Stack } from '@mui/material';
import { Activity } from 'lucide-react';
import { useAgentStore } from '@renderer/stores/agent-store';
import { TraceStep } from './TraceStep';
-import { formatTokens } from '@renderer/lib/formatters';
export function TraceViewer(): React.JSX.Element {
const traceSteps = useAgentStore((s) => s.traceSteps);
- const tokenUsage = useAgentStore((s) => s.tokenUsage);
const agentStatus = useAgentStore((s) => s.agentStatus);
- const provider = useAgentStore((s) => s.provider);
return (
-
+
@@ -23,25 +20,13 @@ export function TraceViewer(): React.JSX.Element {
-
+
{traceSteps.length === 0 ? (
等待 Agent 活动...
) : traceSteps.map((step, i) => (
))}
-
- {tokenUsage.totalTokens > 0 && (
-
-
- Token:
- 入 {formatTokens(tokenUsage.inputTokens)} | 出 {formatTokens(tokenUsage.outputTokens)} | 总 {formatTokens(tokenUsage.totalTokens)}
-
-
- Provider:{provider}
-
-
- )}
);
}