diff --git a/src/renderer/src/components/sidebar/SidebarHeader.tsx b/src/renderer/src/components/sidebar/SidebarHeader.tsx
index b87ea8a056d..3195e76cbc0 100644
--- a/src/renderer/src/components/sidebar/SidebarHeader.tsx
+++ b/src/renderer/src/components/sidebar/SidebarHeader.tsx
@@ -56,7 +56,7 @@ const SidebarHeader = React.memo(function SidebarHeader({
)
return (
-
+
- {agentsViewActive ? (
-
- ) : null}
diff --git a/src/renderer/src/components/sidebar/sidebar-header-actions.tsx b/src/renderer/src/components/sidebar/sidebar-header-actions.tsx
index 48a682c446f..9462c0212e6 100644
--- a/src/renderer/src/components/sidebar/sidebar-header-actions.tsx
+++ b/src/renderer/src/components/sidebar/sidebar-header-actions.tsx
@@ -78,20 +78,23 @@ function NewWorkspaceButton({
export function SidebarHeaderActions({
onWorkspaceBoardMenuOpenChange,
- agentsViewActive = false
+ agentsViewActive = false,
+ activityOptionsTarget
}: {
onWorkspaceBoardMenuOpenChange: (open: boolean) => void
agentsViewActive?: boolean
+ activityOptionsTarget?: React.Ref
}): React.JSX.Element {
return (
- {/* Activity portals its own options into this slot; retain Add project to avoid shifting other controls. */}
- {agentsViewActive ? null : (
-
- )}
+
+ {agentsViewActive ? null : (
+
+ )}
+