Skip to content

Commit bfccefe

Browse files
HaibaraAi137claude
andcommitted
Show parallel-role count in LabStatusStrip
When multiple specialists run in parallel, the strip now reads "active: Analytical (+2 more)" instead of a single role name — matches the parallel-role tracking added to useLiveLabEvents in the prior commit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 44b79a9 commit bfccefe

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

frontend/src/App.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ export function App() {
292292
mode={labMode}
293293
project={liveProject}
294294
activeRoleLabel={liveLab.activeRole?.role ?? null}
295+
activeRoleCount={liveLab.activeRoles.length}
295296
/>
296297
</div>
297298
</div>
@@ -383,9 +384,15 @@ interface LabStatusStripProps {
383384
| null
384385
| undefined;
385386
activeRoleLabel: string | null;
387+
activeRoleCount?: number;
386388
}
387389

388-
function LabStatusStrip({ mode, project, activeRoleLabel }: LabStatusStripProps) {
390+
function LabStatusStrip({
391+
mode,
392+
project,
393+
activeRoleLabel,
394+
activeRoleCount,
395+
}: LabStatusStripProps) {
389396
if (mode === "demo" || !project) {
390397
// Default state — no project bound, just hint.
391398
return (
@@ -403,7 +410,13 @@ function LabStatusStrip({ mode, project, activeRoleLabel }: LabStatusStripProps)
403410
live
404411
<span>iter #{project.iteration_count ?? "—"}</span>
405412
<span>{tokens.toLocaleString()} tokens</span>
406-
<span>{activeRoleLabel ? `active: ${activeRoleLabel}` : "warming up..."}</span>
413+
<span>
414+
{activeRoleLabel
415+
? activeRoleCount && activeRoleCount > 1
416+
? `active: ${activeRoleLabel} (+${activeRoleCount - 1} more)`
417+
: `active: ${activeRoleLabel}`
418+
: "warming up..."}
419+
</span>
407420
</span>
408421
);
409422
}

0 commit comments

Comments
 (0)