From 4bd9ff15eb1a4334a5f05734e9923194fe3bafaf Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Mon, 13 Apr 2026 18:06:45 +0200 Subject: [PATCH] add /documents symlink to sandbox snapshot --- surfsense_backend/scripts/create_sandbox_snapshot.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/surfsense_backend/scripts/create_sandbox_snapshot.py b/surfsense_backend/scripts/create_sandbox_snapshot.py index f1c1920db..e323d407a 100644 --- a/surfsense_backend/scripts/create_sandbox_snapshot.py +++ b/surfsense_backend/scripts/create_sandbox_snapshot.py @@ -31,7 +31,13 @@ def main() -> None: ) daytona = Daytona(config) - image = Image.debian_slim("3.12").pip_install(*PACKAGES) + image = ( + Image.debian_slim("3.12") + .pip_install(*PACKAGES) + # The agent's virtual filesystem serves documents at /documents/. + # This symlink lets code inside the sandbox use the same path. + .run("mkdir -p /home/daytona/documents && ln -sf /home/daytona/documents /documents") + ) print(f"Creating snapshot '{SNAPSHOT_NAME}' with packages: {', '.join(PACKAGES)}") snapshot = daytona.snapshot.create(