@@ -722,73 +722,75 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
722722 isActive : props . isActive ,
723723 isSelected,
724724 } ) ;
725- const topStatus =
726- status === "connecting" || status === "reconnecting" || status === "offline "
725+ const runStatus =
726+ status === "working "
727727 ? {
728- label :
729- status === "connecting"
730- ? "Connecting"
731- : status === "reconnecting"
732- ? "Reconnecting"
733- : "Offline" ,
734- icon : "connection" as const ,
735- className : "text-muted-foreground" ,
728+ label : thread . goal ?. status === "active" ? "Goal" : "Working" ,
729+ icon : "working" as const ,
730+ className : "text-info-foreground" ,
736731 }
737- : status === "working "
732+ : status === "waiting "
738733 ? {
739- label : thread . goal ?. status === "active" ? "Goal" : "Working ",
740- icon : "working " as const ,
741- className : "text-info -foreground" ,
734+ label : "Waiting ",
735+ icon : "waiting " as const ,
736+ className : "text-muted -foreground" ,
742737 }
743- : status === "waiting "
738+ : status === "approval "
744739 ? {
745- label : "Waiting " ,
746- icon : "waiting " as const ,
747- className : "text-muted -foreground" ,
740+ label : "Approval " ,
741+ icon : "approval " as const ,
742+ className : "text-warning -foreground" ,
748743 }
749- : status === "approval "
744+ : status === "input "
750745 ? {
751- label : "Approval " ,
752- icon : "approval " as const ,
753- className : "text-warning-foreground " ,
746+ label : "Input " ,
747+ icon : "input " as const ,
748+ className : "text-indigo-600 dark:text-indigo-300 " ,
754749 }
755- : status === "input "
750+ : status === "request "
756751 ? {
757- label : "Input " ,
758- icon : "input " as const ,
759- className : "text-indigo-600 dark:text-indigo-300 " ,
752+ label : "Request " ,
753+ icon : "request " as const ,
754+ className : "text-guest-foreground " ,
760755 }
761- : status === "request "
756+ : status === "limited "
762757 ? {
763- label : "Request " ,
764- icon : "request " as const ,
765- className : "text-guest -foreground" ,
758+ label : "Limited " ,
759+ icon : "failed " as const ,
760+ className : "text-warning -foreground" ,
766761 }
767- : status === "limited "
762+ : status === "failed "
768763 ? {
769- label : "Limited " ,
764+ label : "Failed " ,
770765 icon : "failed" as const ,
771- className : "text-warning -foreground" ,
766+ className : "text-error -foreground" ,
772767 }
773- : status === "failed"
768+ : isWoke
774769 ? {
775- label : "Failed " ,
776- icon : "failed " as const ,
777- className : "text-error -foreground" ,
770+ label : "Woke " ,
771+ icon : "woke " as const ,
772+ className : "text-warning -foreground" ,
778773 }
779- : isWoke
774+ : isUnread
780775 ? {
781- label : "Woke " ,
782- icon : "woke " as const ,
783- className : "text-warning -foreground" ,
776+ label : "Done " ,
777+ icon : "done " as const ,
778+ className : "text-success -foreground" ,
784779 }
785- : isUnread
786- ? {
787- label : "Done" ,
788- icon : "done" as const ,
789- className : "text-success-foreground" ,
790- }
791- : null ;
780+ : null ;
781+ const topStatus =
782+ status === "connecting" || status === "reconnecting" || status === "offline"
783+ ? {
784+ label :
785+ status === "connecting"
786+ ? "Connecting"
787+ : status === "reconnecting"
788+ ? "Reconnecting"
789+ : "Offline" ,
790+ icon : "connection" as const ,
791+ className : "text-muted-foreground" ,
792+ }
793+ : runStatus ;
792794 const isWokeStatus = topStatus ?. icon === "woke" ;
793795
794796 const branchMismatch = resolveLocalCheckoutBranchMismatch ( {
0 commit comments