@@ -472,7 +472,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
472472 { ! collapsed && (
473473 < >
474474 < div className = "border-dark flex items-center justify-between border-b p-4" >
475- < h2 className = "text-foreground text-md m-0 font-semibold" > Agents </ h2 >
475+ < h2 className = "text-foreground text-md m-0 font-semibold" > Projects </ h2 >
476476 < TooltipWrapper inline >
477477 < button
478478 onClick = { onAddProject }
@@ -557,6 +557,24 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
557557 </ Tooltip >
558558 </ TooltipWrapper >
559559 </ div >
560+ < TooltipWrapper inline >
561+ < button
562+ onClick = { ( event ) => {
563+ event . stopPropagation ( ) ;
564+ handleAddWorkspace ( projectPath ) ;
565+ } }
566+ aria-label = { `Add workspace to ${ projectName } ` }
567+ data-project-path = { projectPath }
568+ className = "text-muted-dark hover:text-foreground hover:bg-hover flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-lg opacity-0 transition-all duration-200"
569+ >
570+ +
571+ </ button >
572+ < Tooltip className = "tooltip" align = "right" >
573+ New Workspace
574+ { selectedWorkspace ?. projectPath === projectPath &&
575+ ` (${ formatKeybind ( KEYBINDS . NEW_WORKSPACE ) } )` }
576+ </ Tooltip >
577+ </ TooltipWrapper >
560578 < TooltipWrapper inline >
561579 < button
562580 onClick = { ( event ) => {
@@ -598,18 +616,6 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
598616 role = "region"
599617 aria-label = { `Workspaces for ${ projectName } ` }
600618 >
601- < div className = "border-hover border-b px-3 py-2" >
602- < button
603- onClick = { ( ) => handleAddWorkspace ( projectPath ) }
604- data-project-path = { projectPath }
605- aria-label = { `Add workspace to ${ projectName } ` }
606- className = "text-muted border-border-medium hover:bg-hover hover:border-border-darker hover:text-foreground w-full cursor-pointer rounded border border-dashed bg-transparent px-3 py-1.5 text-left text-[13px] transition-all duration-200"
607- >
608- + New Workspace
609- { selectedWorkspace ?. projectPath === projectPath &&
610- ` (${ formatKeybind ( KEYBINDS . NEW_WORKSPACE ) } )` }
611- </ button >
612- </ div >
613619 { ( ( ) => {
614620 const allWorkspaces =
615621 sortedWorkspacesByProject . get ( projectPath ) ?? [ ] ;
0 commit comments