@@ -305,11 +286,11 @@ export function ActiveAgentsPanel({ companyId }: ActiveAgentsPanelProps) {
Active Agents
- {agentGroups.map((group) => (
+ {runs.map((run) => (
))}
@@ -317,10 +298,9 @@ export function ActiveAgentsPanel({ companyId }: ActiveAgentsPanelProps) {
);
}
-function AgentRunCard({ group, feed }: { group: AgentRunGroup; feed: FeedItem[] }) {
+function AgentRunCard({ run, feed }: { run: LiveRunForIssue; feed: FeedItem[] }) {
const bodyRef = useRef
(null);
const recent = feed.slice(-20);
- const primaryRun = group.runs[0];
useEffect(() => {
const body = bodyRef.current;
@@ -336,23 +316,19 @@ function AgentRunCard({ group, feed }: { group: AgentRunGroup; feed: FeedItem[]
-
+
Live
- {group.runs.length > 1 && (
-
- ({group.runs.length} runs)
-
- )}
+
+ {run.id.slice(0, 8)}
+
- {primaryRun && (
-
@@ -381,21 +357,6 @@ function AgentRunCard({ group, feed }: { group: AgentRunGroup; feed: FeedItem[]
))}
-
- {group.runs.length > 1 && (
-