Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions web/src/session/SessionRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ export function SessionRow({
onArchive?: () => void
}) {
const st = sessionState(s, stale)
// On a phone the group heading and the animated icon already say Working/Starting/Idle/
// Complete; the word earns its space only for setup progress, a hold-up or a failure.
const said = !!s.preparation || (!st.live && st.tone !== 'muted')
const detail = [stale ? 'Reconnecting…' : machine, s.preparation?.branch || folder].filter(Boolean).join(' · ')
const quiet = s.status === 'idle'
const tasks = s.archivedAt ? 0 : (s.backgroundTasks?.length ?? 0)
Expand All @@ -100,10 +103,14 @@ export function SessionRow({
<span className="min-w-0 flex-1">
<span className="flex items-center justify-between gap-2">
<span className="truncate text-sm font-semibold leading-5">{title}</span>
<span data-state={s.status} className={cn('inline-flex shrink-0 items-center gap-1.5 text-xs', st.tone === 'muted' ? 'font-medium' : 'font-semibold', TEXT_TONE[st.tone])}>
<span className={cn('size-1.5 rounded-full bg-current', st.live && 'animate-pulse')} />
{st.label}
</span>
{said ? (
<span data-state={s.status} className={cn('inline-flex shrink-0 items-center gap-1.5 text-xs', st.tone === 'muted' ? 'font-medium' : 'font-semibold', TEXT_TONE[st.tone])}>
<span className={cn('size-1.5 rounded-full bg-current', st.live && 'animate-pulse')} />
{st.label}
</span>
) : (
<span data-state={s.status} className="sr-only">{st.label}</span>
)}
</span>
<span className="flex items-center justify-between gap-2">
<span className="truncate text-xs leading-4 text-muted-foreground">{detail}</span>
Expand Down
Loading