{roster.map((a) => {
- // Find the story this roster agent is currently working on (if any)
- const activeEntry = Object.entries(agents).find(
- ([, state]) =>
- state.agentName === a.name &&
- (state.status === "running" || state.status === "pending"),
- );
- const activeStoryId = activeEntry
- ? activeEntry[0].split(":")[0]
- : null;
const isHidden = hiddenRosterAgents.has(a.name);
return (
- // Collapsing wrapper: smoothly shrinks when agent departs
- // to a work item and expands when it returns.
-
+
);
})}