diff --git a/src/components/Sidepanel/Chat/empty.tsx b/src/components/Sidepanel/Chat/empty.tsx
index cf38d1a..bd1084b 100644
--- a/src/components/Sidepanel/Chat/empty.tsx
+++ b/src/components/Sidepanel/Chat/empty.tsx
@@ -2,7 +2,7 @@ import { cleanUrl } from "@/libs/clean-url"
import { useStorage } from "@plasmohq/storage/hook"
import { useQuery, useQueryClient } from "@tanstack/react-query"
import { Select } from "antd"
-import { RotateCcw } from "lucide-react"
+import { Loader2, RotateCcw } from "lucide-react"
import { useEffect, useState } from "react"
import { Trans, useTranslation } from "react-i18next"
import { useMessage } from "~/hooks/useMessage"
@@ -50,6 +50,88 @@ export const EmptySidePanel = () => {
const { setSelectedModel, selectedModel, chatMode, setChatMode } =
useMessage()
+ const renderSection = () => {
+ return (
+
+
+ )
+ }
+
+ if (!checkOllamaStatus) {
+ return (
+
+
+
+
+ 👋
+ {t("welcome")}
+
+
+ {ollamaStatus === "pending" && (
+
+ )}
+ {ollamaStatus === "success" && ollamaInfo.isOk && renderSection()}
+
+
+ )
+ }
return (
@@ -62,7 +144,7 @@ export const EmptySidePanel = () => {
)}
- {!isRefetching && ollamaStatus === "success" && checkOllamaStatus ? (
+ {!isRefetching && ollamaStatus === "success" ? (
ollamaInfo.isOk ? (
@@ -115,67 +197,7 @@ export const EmptySidePanel = () => {
)
) : null}
- {ollamaStatus === "success" && ollamaInfo.isOk && (
-
-
- )}
+ {ollamaStatus === "success" && ollamaInfo.isOk && renderSection()}
)