@@ -86,7 +86,6 @@ export interface AgentListItemProps extends AgentListItemBaseProps {
8686 variant ?: "workspace" ;
8787 metadata : FrontendWorkspaceMetadata ;
8888 projectName : string ;
89- subAgentConnectorLayout ?: "default" | "task-group-member" ;
9089 isArchiving ?: boolean ;
9190 /** True when deletion is in-flight (optimistic UI while backend removes). */
9291 isRemoving ?: boolean ;
@@ -128,19 +127,7 @@ const SHOW_INLINE_ACTIONS_ON_WIDE_TOUCH =
128127/** Calculate left padding based on nesting depth */
129128function getItemPaddingLeft ( depth ?: number ) : number {
130129 const safeDepth = typeof depth === "number" && Number . isFinite ( depth ) ? Math . max ( 0 , depth ) : 0 ;
131- return 8 + Math . min ( 32 , safeDepth ) * 12 ;
132- }
133-
134- function getSubAgentConnectorLeft (
135- indentLeft : number ,
136- layout : "default" | "task-group-member"
137- ) : number {
138- return layout === "task-group-member" ? indentLeft - 2 : indentLeft + 9 ;
139- }
140-
141- function getAncestorTrunkLeft ( depth : number , layout : "default" | "task-group-member" ) : number {
142- const indentLeft = getItemPaddingLeft ( depth ) ;
143- return layout === "task-group-member" ? indentLeft + 6 : indentLeft + 8 ;
130+ return 12 + Math . min ( 32 , safeDepth ) * 12 ;
144131}
145132
146133type VisualState = "active" | "idle" | "seen" | "hidden" | "error" | "question" ;
@@ -294,31 +281,20 @@ function ActionButtonWrapper(props: { children: React.ReactNode; className?: str
294281// ─────────────────────────────────────────────────────────────────────────────
295282
296283function DraftAgentListItemInner ( props : DraftAgentListItemProps ) {
297- const { projectPath, isSelected, depth, sectionId , draft } = props ;
284+ const { projectPath, isSelected, depth, draft } = props ;
298285 const paddingLeft = getItemPaddingLeft ( depth ) ;
299286 const hasPromptPreview = draft . promptPreview . length > 0 ;
300- const draftBorderStyle : React . CSSProperties = {
301- backgroundImage : [
302- "repeating-linear-gradient(to right, var(--color-border) 0 5px, transparent 5px 10px)" ,
303- "repeating-linear-gradient(to right, var(--color-border) 0 5px, transparent 5px 10px)" ,
304- "repeating-linear-gradient(to bottom, var(--color-border) 0 5px, transparent 5px 10px)" ,
305- ] . join ( ", " ) ,
306- backgroundSize : "100% 1.5px, 100% 1.5px, 1.5px 100%" ,
307- backgroundPosition : "left top, left bottom, left top" ,
308- backgroundRepeat : "no-repeat" ,
309- } ;
310287
311288 const ctxMenu = useContextMenuPosition ( { longPress : true } ) ;
312289
313290 return (
314291 < div
315292 className = { cn (
316293 LIST_ITEM_BASE_CLASSES ,
317- sectionId != null ? "ml-8" : "ml-6.5" ,
318- "cursor-pointer pl-1 hover:bg-surface-secondary [&:hover_button]:opacity-100" ,
294+ "border-border cursor-pointer border-t border-b border-l border-dashed pl-1 hover:bg-surface-secondary [&:hover_button]:opacity-100" ,
319295 isSelected && "bg-surface-secondary"
320296 ) }
321- style = { { paddingLeft, ... draftBorderStyle } }
297+ style = { { paddingLeft } }
322298 onClick = { ( ) => {
323299 if ( ctxMenu . suppressClickIfLongPress ( ) ) return ;
324300 draft . onOpen ( ) ;
@@ -687,7 +663,6 @@ function RegularAgentListItemInner(props: AgentListItemProps) {
687663 className = { cn (
688664 LIST_ITEM_BASE_CLASSES ,
689665 "group/row" ,
690- sectionId != null ? "ml-7.5" : "ml-5" ,
691666 isDragging && "opacity-50" ,
692667 isRemoving && "opacity-70" ,
693668 // Keep hover styles enabled for initializing workspaces so the row feels interactive.
@@ -1104,15 +1079,9 @@ function AgentListItemInner(props: UnifiedAgentListItemProps) {
11041079 // Connector geometry is driven by render metadata so visible siblings keep
11051080 // consistent single/middle/last shapes as parents expand/collapse children.
11061081 const isElbowActive = props . metadata . taskStatus === "running" ;
1107- // Task-group members use a slightly different left rail so their connector
1108- // trunk aligns with the group's leading chevron column.
1109- const connectorLayout = props . subAgentConnectorLayout ?? "default" ;
1110- const connectorLeft = getSubAgentConnectorLeft (
1111- getItemPaddingLeft ( props . depth ) ,
1112- connectorLayout
1113- ) ;
1082+ const indentLeft = getItemPaddingLeft ( props . depth ) ;
11141083 const ancestorTrunks = rowMeta . ancestorTrunks . map ( ( trunk ) => ( {
1115- left : getAncestorTrunkLeft ( trunk . depth , connectorLayout ) ,
1084+ left : getItemPaddingLeft ( trunk . depth ) - 4 ,
11161085 active : trunk . active ,
11171086 } ) ) ;
11181087
@@ -1123,7 +1092,7 @@ function AgentListItemInner(props: UnifiedAgentListItemProps) {
11231092 sharedTrunkActiveThroughRow = { rowMeta . sharedTrunkActiveThroughRow }
11241093 sharedTrunkActiveBelowRow = { rowMeta . sharedTrunkActiveBelowRow }
11251094 ancestorTrunks = { ancestorTrunks }
1126- connectorLeft = { connectorLeft }
1095+ indentLeft = { indentLeft }
11271096 isSelected = { props . isSelected }
11281097 isElbowActive = { isElbowActive }
11291098 >
0 commit comments