@@ -38,8 +38,6 @@ import ChatTextArea from "./ChatTextArea"
3838import TaskHeader from "./TaskHeader"
3939import AutoApproveMenu from "./AutoApproveMenu"
4040import SystemPromptWarning from "./SystemPromptWarning"
41-
42- import { useTaskSearch } from "@/components/history/useTaskSearch"
4341interface ChatViewProps {
4442 isHidden : boolean
4543 showAnnouncement : boolean
@@ -86,8 +84,6 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
8684 hasSystemPromptOverride,
8785 } = useExtensionState ( )
8886
89- const { tasks } = useTaskSearch ( )
90-
9187 //const task = messages.length > 0 ? (messages[0].say === "task" ? messages[0] : undefined) : undefined) : undefined
9288 const task = useMemo ( ( ) => messages . at ( 0 ) , [ messages ] ) // leaving this less safe version here since if the first message is not a task, then the extension is in a bad state and needs to be debugged (see Cline.abort)
9389 const modifiedMessages = useMemo ( ( ) => combineApiRequests ( combineCommandSequences ( messages . slice ( 1 ) ) ) , [ messages ] )
@@ -1231,36 +1227,39 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
12311227 ) }
12321228 </ >
12331229 ) : (
1234- < div className = "flex-1 min-h-0 overflow-y-auto flex flex-col justify-center p-10 gap-4 pb-[10px]" >
1235- { telemetrySetting === "unset" && < TelemetryBanner /> }
1236- { showAnnouncement && < Announcement version = { version } hideAnnouncement = { hideAnnouncement } /> }
1237-
1238- { /* Always show the hero. */ }
1239- < RooHero />
1240- { /* If the user has no task history, we can show the onboarding message */ }
1241- { ! taskHistory . length && (
1242- < p className = "ext-vscode-editor-foreground leading-tight font-vscode text-center" >
1243- < Trans
1244- i18nKey = "chat:about"
1245- components = { {
1246- DocsLink : (
1247- < a
1248- href = "https://docs.roocode.com/getting-started/your-first-task"
1249- target = "_blank"
1250- rel = "noopener noreferrer" >
1251- the docs
1252- </ a >
1253- ) ,
1254- } }
1255- />
1256- </ p >
1257- ) }
1258-
1259- { /* Show the task history if there are any for this workspace. */ }
1230+ < >
12601231 { taskHistory . length > 0 && < HistoryPreview showHistoryView = { showHistoryView } /> }
1261- { /* Finally, if there less than 3 tasks, we can show the tips */ }
1262- { tasks . length < 3 && < RooTips cycle = { ! ! ( tasks . length < 3 && taskHistory . length > 0 ) } /> }
1263- </ div >
1232+ < div className = "flex-1 min-h-0 overflow-y-auto flex flex-col justify-center p-10 gap-1 pb-[10px]" >
1233+ { /* Show the task history if there are any for this workspace. */ }
1234+
1235+ { telemetrySetting === "unset" && < TelemetryBanner /> }
1236+ { showAnnouncement && < Announcement version = { version } hideAnnouncement = { hideAnnouncement } /> }
1237+
1238+ { /* Always show the hero. */ }
1239+ < RooHero />
1240+ { /* If the user has little task history, we can show the onboarding message */ }
1241+ { taskHistory . length < 10 && (
1242+ < p className = "ext-vscode-editor-foreground leading-tight font-vscode text-center" >
1243+ < Trans
1244+ i18nKey = "chat:about"
1245+ components = { {
1246+ DocsLink : (
1247+ < a
1248+ href = "https://docs.roocode.com/getting-started/your-first-task"
1249+ target = "_blank"
1250+ rel = "noopener noreferrer" >
1251+ the docs
1252+ </ a >
1253+ ) ,
1254+ } }
1255+ />
1256+ </ p >
1257+ ) }
1258+
1259+ { /* Finally, always show the tips */ }
1260+ < RooTips cycle = { false } />
1261+ </ div >
1262+ </ >
12641263 ) }
12651264
12661265 { /*
0 commit comments