Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/assistant/runtime/composables/useAssistant.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Chat } from '@ai-sdk/vue';
import { useLocalStorage } from '@vueuse/core';
import { DefaultChatTransport, type ChatStatus, type UIMessage } from 'ai';
import { useAppConfig, useRoute, useRuntimeConfig, useState, useToast } from '#imports';
import { computed, watch, type Ref } from 'vue';
Expand Down Expand Up @@ -35,7 +36,7 @@ export function useAssistant() {
const appConfig = useAppConfig();
const assistantConfig = appConfig.assistant as { faqQuestions?: FaqCategory[] } | undefined;
const isEnabled = computed(() => Boolean(config.public.assistant?.enabled));
const isOpen = useState('assistant-open', () => false);
const isOpen = useLocalStorage('assistant-open', false);
const pendingMessage = useState<string | undefined>('assistant-pending', () => undefined);
const easterEggLoadingId = useState<string | null>('assistant-easter-egg-id', () => null);
const pageContextDismissed = useState('assistant-page-context-dismissed', () => false);
Expand Down
Loading