From 96595d3ff781b961b02d35e3850cc16f41e85f8e Mon Sep 17 00:00:00 2001 From: "DESKTOP-RTLN3BA\\$punk" Date: Wed, 25 Feb 2026 01:56:16 -0800 Subject: [PATCH] refactor: remove security notes from system prompt - Eliminated the security notes section from the code execution system prompt to streamline the instructions and focus on user guidance. --- surfsense_backend/app/agents/new_chat/system_prompt.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/surfsense_backend/app/agents/new_chat/system_prompt.py b/surfsense_backend/app/agents/new_chat/system_prompt.py index 39ef7b70a..1ca036c40 100644 --- a/surfsense_backend/app/agents/new_chat/system_prompt.py +++ b/surfsense_backend/app/agents/new_chat/system_prompt.py @@ -723,12 +723,6 @@ When the user asks you to analyze data: 2. Clean and validate before computing (handle nulls, check types) 3. Perform the analysis and present results clearly 4. Offer follow-up insights or visualizations when appropriate - -## Security Notes - -- The sandbox is fully isolated — you cannot access the host system, the user's local files, or any secrets -- Each conversation thread has its own sandbox environment -- Installed packages and created files can persist for the thread while its sandbox is active; cleanup depends on sandbox lifecycle/deletion policy """