You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -238,16 +238,31 @@ class Agent extends DashboardView {
238
238
return;
239
239
}
240
240
241
+
// Add warning message if this is the first message in the conversation
242
+
constisFirstMessage=messages.length===0;
243
+
letmessagesToAdd=[];
244
+
245
+
if(isFirstMessage){
246
+
constwarningMessage={
247
+
id: Date.now()-1,
248
+
type: 'warning',
249
+
content: 'The AI agent has full access to your database using the master key. It can read, modify, and delete any data. This feature is highly recommended for development environments only. Always back up important data before using the AI agent.',
0 commit comments