- {/* Logo / Title */}
@@ -49,9 +62,7 @@ export function StatusBar({ agents, health, lastUpdated, loading = false, error,
- {/* Stats */}
- {/* Gateway Status */}
{connected ? (
@@ -68,7 +79,6 @@ export function StatusBar({ agents, health, lastUpdated, loading = false, error,
- {/* Sessions */}
{health && health.sessions > 0 && (
@@ -77,14 +87,13 @@ export function StatusBar({ agents, health, lastUpdated, loading = false, error,
)}
- {/* Task Progress */}
Tareas
- {completedTasks}
+ {taskStats.completedTasks}
/
- {totalTasks}
+ {taskStats.totalTasks}
@@ -95,7 +104,6 @@ export function StatusBar({ agents, health, lastUpdated, loading = false, error,
- {/* Agent Status Pills */}
@@ -124,7 +132,6 @@ export function StatusBar({ agents, health, lastUpdated, loading = false, error,
- {/* Time / Refresh */}
diff --git a/src/hooks/useOpenClaw.ts b/src/hooks/useOpenClaw.ts
index dbc77ef..f6025e7 100644
--- a/src/hooks/useOpenClaw.ts
+++ b/src/hooks/useOpenClaw.ts
@@ -1,117 +1,80 @@
-import { useState, useEffect, useCallback, useRef } from 'react'
-import { getOpenClawClient, resetOpenClawClient, type OpenClawState } from '../lib/openclaw-api'
-import type { Agent } from '../types/agent'
-import { agents as staticAgents } from '../data/agents'
+import { useState, useEffect, useCallback, useRef } from 'react';
+import { openclawClient } from '../lib/openclaw-api';
+import type { Agent, TimelineEvent } from '../types/agent';
-// Layout positions para cada agente (fijas en el canvas)
-const AGENT_POSITIONS: Record