diff --git a/web/src/app/_components/input-box.tsx b/web/src/app/_components/input-box.tsx index f8a6b12..5f9c1b9 100644 --- a/web/src/app/_components/input-box.tsx +++ b/web/src/app/_components/input-box.tsx @@ -13,8 +13,14 @@ import { import { Button } from "~/components/ui/button"; import type { Option } from "~/core/messages"; +import { + setEnableBackgroundInvestigation, + useSettingsStore, +} from "~/core/store"; import { cn } from "~/lib/utils"; +import { Detective } from "../_icons/detective"; + import { Tooltip } from "./tooltip"; export function InputBox({ @@ -37,6 +43,9 @@ export function InputBox({ const [message, setMessage] = useState(""); const [imeStatus, setImeStatus] = useState<"active" | "inactive">("inactive"); const [indent, setIndent] = useState(0); + const backgroundInvestigation = useSettingsStore( + (state) => state.general.enableBackgroundInvestigation, + ); const textareaRef = useRef(null); const feedbackRef = useRef(null); @@ -137,7 +146,37 @@ export function InputBox({ />
-
+
+ +

+ Investigation Mode: {backgroundInvestigation ? "On" : "Off"} +

+

+ When enabled, DeerFlow will perform a quick search before + planning. This is useful for researches related to ongoing + events and news. +

+
+ } + > + + +