@@ -488,6 +488,11 @@ function SortablePinnedThreadRow(props: {
488488 return props . children ( { listeners, setNodeRef, transform, transition, isDragging } ) ;
489489}
490490
491+ // Unsent work shares one look: the new-thread draft rows and thread rows
492+ // with unsent composer text both use this tint and pen so they read alike.
493+ const draftSurfaceClassName = "bg-amber-400/[0.04] hover:bg-amber-400/[0.08]" ;
494+ const draftPenClassName = "size-3 shrink-0 text-amber-600 dark:text-amber-300/80" ;
495+
491496// One unsent draft session the user has invested content in. Two lines,
492497// nothing else: project name, then the typed prompt. All the draft's
493498// settings (model, env mode, branch, worktree) still travel with it —
@@ -553,19 +558,14 @@ const SidebarDraftRow = memo(function SidebarDraftRow(props: {
553558 data-testid = "sidebar-draft-row"
554559 className = { cn (
555560 "group/sidebar-row relative w-full cursor-pointer overflow-hidden rounded-md text-left text-sidebar-foreground outline-none select-none" ,
556- props . isActive
557- ? "bg-sidebar-row-active"
558- : "bg-amber-400/[0.04] hover:bg-amber-400/[0.08]" ,
561+ props . isActive ? "bg-sidebar-row-active" : draftSurfaceClassName ,
559562 ) }
560563 onClick = { handleActivate }
561564 onKeyDown = { handleKeyDown }
562565 >
563566 < div className = "relative z-10 px-[var(--sidebar-row-content-inset)] py-[var(--sidebar-content-inset)]" >
564567 < div className = "flex h-5 min-w-0 items-center gap-1.5" >
565- < SquarePenIcon
566- aria-hidden
567- className = "size-3 shrink-0 text-amber-600 dark:text-amber-300/80"
568- />
568+ < SquarePenIcon aria-hidden className = { draftPenClassName } />
569569 < ProjectFavicon
570570 environmentId = { session . environmentId }
571571 cwd = { props . projectCwd ?? "" }
@@ -1178,7 +1178,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
11781178 : isSelected
11791179 ? "bg-sidebar-row-selected text-sidebar-foreground"
11801180 : hasUnsentDraft
1181- ? "bg-amber-400/[0.04] text-sidebar-foreground hover:bg-amber-400/[0.08]"
1181+ ? cn ( draftSurfaceClassName , " text-sidebar-foreground" )
11821182 : shouldRecede
11831183 ? "text-sidebar-muted-foreground/75 hover:bg-sidebar-row-hover hover:text-sidebar-foreground"
11841184 : "bg-transparent text-sidebar-foreground hover:bg-sidebar-row-hover" ,
@@ -1277,11 +1277,11 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
12771277 role = "img"
12781278 aria-label = "Unsent draft"
12791279 data-testid = { `sidebar-draft-indicator-${ thread . id } ` }
1280- className = "inline-flex shrink-0 items-center text-amber-600 dark:text-amber-300/80 "
1280+ className = "inline-flex shrink-0 items-center"
12811281 />
12821282 }
12831283 >
1284- < SquarePenIcon aria-hidden className = "size-3" />
1284+ < SquarePenIcon aria-hidden className = { draftPenClassName } />
12851285 </ TooltipTrigger >
12861286 < TooltipPopup side = "top" > Unsent draft</ TooltipPopup >
12871287 </ Tooltip >
0 commit comments