diff --git a/apps/desktop/layer/renderer/src/modules/new-user-guide/feeds-selection-list.tsx b/apps/desktop/layer/renderer/src/modules/new-user-guide/feeds-selection-list.tsx index 90bf01fe2..ee6b7708e 100644 --- a/apps/desktop/layer/renderer/src/modules/new-user-guide/feeds-selection-list.tsx +++ b/apps/desktop/layer/renderer/src/modules/new-user-guide/feeds-selection-list.tsx @@ -20,17 +20,24 @@ import { useMessages } from "../ai-chat/store/hooks" import { SearchResultContent } from "../discover/DiscoverFeedCard" import { FeedIcon } from "../feed/feed-icon" import type { FeedSelection } from "./store" -import { feedSelectionAtomsAtom, selectedFeedSelectionAtomsAtom } from "./store" +import { feedSelectionAtomsAtom, selectedFeedSelectionAtomsAtom, stepAtom } from "./store" type FeedToSelect = Omit export function FeedsSelectionList() { const chatMessages = useMessages() + const setStep = useSetAtom(stepAtom) const hasFeedsSelection = chatMessages.some((msg) => msg.parts.some((p) => p.type === "tool-onboardingGetTrendingFeeds" && p.output), ) + useEffect(() => { + if (hasFeedsSelection) { + setStep("selecting-feeds") + } + }, [hasFeedsSelection, setStep]) + return (