style(activity): Status history task title color matches status

- working/thinking → green
- sub-agent → blue
- error → red
- idle → gray
This commit is contained in:
Brad Groux 2026-02-04 20:59:39 -06:00
parent d6518f66db
commit 74ca2decbe

View file

@ -596,7 +596,15 @@ function StatusHistoryPanel({ onTaskClick }: StatusHistoryPanelProps) {
<span
className={cn(
'text-sm truncate flex-1',
entry.taskId && onTaskClick && 'text-primary hover:underline'
entry.taskId && onTaskClick && 'hover:underline',
// Color based on newStatus
entry.newStatus === 'working' || entry.newStatus === 'thinking'
? 'text-green-500'
: entry.newStatus === 'sub-agent'
? 'text-blue-500'
: entry.newStatus === 'error'
? 'text-red-500'
: 'text-gray-500'
)}
title={entry.taskTitle || 'No task'}
>