disable file sync to sandbox, LLM handles data extraction itself

This commit is contained in:
CREDO23 2026-04-13 20:59:31 +02:00
parent 5ea2732bf2
commit facfb1f7e7

View file

@ -29,7 +29,6 @@ from app.agents.new_chat.sandbox import (
_evict_sandbox_cache, _evict_sandbox_cache,
get_or_create_sandbox, get_or_create_sandbox,
is_sandbox_enabled, is_sandbox_enabled,
sync_files_to_sandbox,
) )
from app.db import Chunk, Document, DocumentType, Folder, shielded_async_session from app.db import Chunk, Document, DocumentType, Folder, shielded_async_session
from app.indexing_pipeline.document_chunker import chunk_text from app.indexing_pipeline.document_chunker import chunk_text
@ -589,8 +588,8 @@ class SurfSenseFilesystemMiddleware(FilesystemMiddleware):
timeout: int | None, timeout: int | None,
) -> str: ) -> str:
sandbox, is_new = await get_or_create_sandbox(self._thread_id) sandbox, is_new = await get_or_create_sandbox(self._thread_id)
files = runtime.state.get("files") or {} # files = runtime.state.get("files") or {}
await sync_files_to_sandbox(self._thread_id, files, sandbox, is_new) # await sync_files_to_sandbox(self._thread_id, files, sandbox, is_new)
result = await sandbox.aexecute(command, timeout=timeout) result = await sandbox.aexecute(command, timeout=timeout)
output = (result.output or "").strip() output = (result.output or "").strip()
if not output and result.exit_code == 0: if not output and result.exit_code == 0: