diff --git a/web/src/components/SessionList.tsx b/web/src/components/SessionList.tsx index 723299d9..a659ff91 100644 --- a/web/src/components/SessionList.tsx +++ b/web/src/components/SessionList.tsx @@ -766,9 +766,10 @@ function SessionItem(props: { showDetailedStatus?: boolean inRunningSection?: boolean projectLabel?: string + machineLabel?: string }) { const { t } = useTranslation() - const { session: s, onSelect, showPath = true, api, selected = false, showDetailedStatus = false, inRunningSection = false, projectLabel } = props + const { session: s, onSelect, showPath = true, api, selected = false, showDetailedStatus = false, inRunningSection = false, projectLabel, machineLabel } = props const { haptic } = usePlatform() const [menuOpen, setMenuOpen] = useState(false) const [menuAnchorPoint, setMenuAnchorPoint] = useState<{ x: number; y: number }>({ x: 0, y: 0 }) @@ -863,6 +864,7 @@ function SessionItem(props: { scheduleTooltipId={scheduleId} inRunningSection={inRunningSection} projectLabel={projectLabel} + machineLabel={machineLabel} /> @@ -1453,6 +1455,7 @@ export function SessionList(props: { showDetailedStatus={showDetailedStatus} inRunningSection projectLabel={getGroupDisplayName(s.metadata?.worktree?.basePath ?? s.metadata?.path ?? 'Other')} + machineLabel={resolveMachineLabel(s.metadata?.machineId ?? null)} /> ))} diff --git a/web/src/components/SessionRowSummary.tsx b/web/src/components/SessionRowSummary.tsx index 25b36ce0..cbb46ad1 100644 --- a/web/src/components/SessionRowSummary.tsx +++ b/web/src/components/SessionRowSummary.tsx @@ -115,6 +115,8 @@ export function SessionRowSummary(props: { inRunningSection?: boolean /** Short project name shown under the title (pinned "in progress" rows). */ projectLabel?: string + /** Machine label shown next to the project name (pinned "in progress" rows). */ + machineLabel?: string }) { const { session: s, @@ -127,6 +129,7 @@ export function SessionRowSummary(props: { className, inRunningSection = false, projectLabel, + machineLabel, } = props const { t } = useTranslation() const sessionName = getSessionTitle(s) @@ -245,9 +248,9 @@ export function SessionRowSummary(props: { ) : null} - {projectLabel ? ( -