Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Joshenlim/fe 4068 warn users ai assistant history can be wiped (#51260)

Joshen Limdc95335a8db3
diff --git a/apps/studio/components/layouts/ExplorerLayout/ExplorerNavChats.tsx b/apps/studio/components/layouts/ExplorerLayout/ExplorerNavChats.tsx
index c2211b926d8..8564f85b15a 100644
--- a/apps/studio/components/layouts/ExplorerLayout/ExplorerNavChats.tsx
+++ b/apps/studio/components/layouts/ExplorerLayout/ExplorerNavChats.tsx
@@ -55,6 +55,11 @@ export const ExplorerNavChats = () => {
})
)}
</div>
+ <section className="flex shrink-0 flex-col gap-3 border-t border-default p-3">
+ <p className="text-xs text-foreground-lighter">
+ Chat history is saved to this browser and isn't synced across devices.
+ </p>
+ </section>
</ExplorerNavResourceWrapper>
)
}
diff --git a/apps/studio/components/ui/AIAssistantPanel/AIAssistantChatSelector.tsx b/apps/studio/components/ui/AIAssistantPanel/AIAssistantChatSelector.tsx
index 11b87ad7653..10801a2a320 100644
--- a/apps/studio/components/ui/AIAssistantPanel/AIAssistantChatSelector.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/AIAssistantChatSelector.tsx
@@ -222,6 +222,12 @@ export const AIAssistantChatSelector = ({
<span>Start a new chat</span>
</CommandItem>
</CommandGroup>
+ <CommandSeparator />
+ <CommandGroup className="px-2 py-1.5">
+ <p className="text-xs text-foreground-lighter">
+ Chat history is saved to this browser and isn't synced across devices.
+ </p>
+ </CommandGroup>
</CommandList>
</Command>
</PopoverContent>