'use client' import type { DashboardData } from '../widget-primitives' export function SessionWorkbenchWidget({ data }: { data: DashboardData }) { const { isLocal, sessions, isSessionsLoading, openSession } = data return (

{isLocal ? 'Session Workbench' : 'Session Router'}

{sessions.length}
{sessions.length === 0 ? (

{isSessionsLoading ? 'Loading sessions...' : isLocal ? 'No active sessions' : 'No gateway sessions'}

{isLocal ? 'Start a Claude or Codex session to see it here.' : 'Sessions appear when gateway agents connect.'}

) : ( sessions.slice(0, 10).map((session) => (
)) )}
) }