You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 19, 2026. It is now read-only.
Create the live instance viewer that shows real-time execution of a running agent instance. The viewer connects via Socket.IO to the /agents namespace and displays a live action feed (like a terminal/log view), current LLM reasoning status, token usage meter, active sessions, and control buttons (pause, resume, stop). Approval requests are shown inline with approve/deny buttons.
Technical Details
Client — Live Instance Viewer (client/src/components/Agents/LiveInstanceViewer.tsx)
Full-height panel (rendered inside agent detail view or as standalone dialog)
Props: { instanceId, onClose }
Header:
Instance ID, task description (truncated), status chip (live-updating)
Code: AGENT-2140
Priority: MEDIUM
Section: Orchestration — Agent Orchestration Gateway (Phase 4: GUI)
Dependencies: AGENT-2127
Description
Create the live instance viewer that shows real-time execution of a running agent instance. The viewer connects via Socket.IO to the
/agentsnamespace and displays a live action feed (like a terminal/log view), current LLM reasoning status, token usage meter, active sessions, and control buttons (pause, resume, stop). Approval requests are shown inline with approve/deny buttons.Technical Details
Client — Live Instance Viewer (
client/src/components/Agents/LiveInstanceViewer.tsx){ instanceId, onClose }Header:
Token Meter:
Action Feed (main area):
df -h" or "DB → analytics-db:SELECT count(*) FROM users"Active Sessions Panel (collapsible sidebar):
Client — Socket.IO Integration
/agentsnamespace with JWT authinstance:action— new action in feedinstance:status— status change (RUNNING→PAUSED, etc.)instance:token_update— token usage updateinstance:approval_required— new approval requestClient — API
agent.api.ts:getInstanceDetails(instanceId)→ full instance with recent actionspauseInstance(instanceId)→ voidresumeInstance(instanceId)→ voidstopInstance(instanceId, reason?)→ voidapproveAction(requestId, note?)→ voiddenyAction(requestId, note?)→ voidClient — Store
agentStore.ts: liveInstance state, Socket.IO connection management, action feed bufferFiles Involved
client/src/components/Agents/LiveInstanceViewer.tsx— Real-time execution viewerclient/src/components/Agents/ActionFeed.tsx— Scrollable action feed componentclient/src/components/Agents/TokenMeter.tsx— Token budget progress barclient/src/components/Agents/ApprovalCard.tsx— Inline approval request cardclient/src/api/agent.api.ts— Add instance control and approval endpointsclient/src/store/agentStore.ts— Add live instance state managementclient/src/components/Agents/AgentDetailView.tsx— Open live viewer for running instancesReference: Agent Orchestration Gateway — Phase 4.4