From facfb1f7e7b339bcce3ab5500056f3e12af4392f Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Mon, 13 Apr 2026 20:59:31 +0200 Subject: [PATCH] disable file sync to sandbox, LLM handles data extraction itself --- .../app/agents/new_chat/middleware/filesystem.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/surfsense_backend/app/agents/new_chat/middleware/filesystem.py b/surfsense_backend/app/agents/new_chat/middleware/filesystem.py index 09f69d07b..af5a6925b 100644 --- a/surfsense_backend/app/agents/new_chat/middleware/filesystem.py +++ b/surfsense_backend/app/agents/new_chat/middleware/filesystem.py @@ -29,7 +29,6 @@ from app.agents.new_chat.sandbox import ( _evict_sandbox_cache, get_or_create_sandbox, is_sandbox_enabled, - sync_files_to_sandbox, ) from app.db import Chunk, Document, DocumentType, Folder, shielded_async_session from app.indexing_pipeline.document_chunker import chunk_text @@ -589,8 +588,8 @@ class SurfSenseFilesystemMiddleware(FilesystemMiddleware): timeout: int | None, ) -> str: sandbox, is_new = await get_or_create_sandbox(self._thread_id) - files = runtime.state.get("files") or {} - await sync_files_to_sandbox(self._thread_id, files, sandbox, is_new) + # files = runtime.state.get("files") or {} + # await sync_files_to_sandbox(self._thread_id, files, sandbox, is_new) result = await sandbox.aexecute(command, timeout=timeout) output = (result.output or "").strip() if not output and result.exit_code == 0: