diff --git a/src/renderer/src/components/tab-bar/TabBarCreateEntry.tsx b/src/renderer/src/components/tab-bar/TabBarCreateEntry.tsx index a2665ef1786..3a43294bb46 100644 --- a/src/renderer/src/components/tab-bar/TabBarCreateEntry.tsx +++ b/src/renderer/src/components/tab-bar/TabBarCreateEntry.tsx @@ -1,5 +1,6 @@ import React, { useEffect, useMemo, useRef, useState } from 'react' import { Input } from '@/components/ui/input' +import { cn } from '@/lib/class-names' import { useRuntimeFileListForWorktree } from '../quick-open-file-list' import { createTabEntryAllowAbsolutePathsSelector, @@ -275,9 +276,15 @@ function TabBarCreateEntrySession({ }) } + const hasStatusRows = Boolean( + error || switchError || selectionGuidance || (activeOptions.length > 0 && statusOption) + ) + const hasResultRows = !error && (activeOptions.length > 0 || hasQuery) + const hasBodyRows = hasStatusRows || hasResultRows + return (