refactor(agents): sink sandbox.py into filesystem subsystem

shared/sandbox.py was used only by the filesystem middleware/tools (and the
boundary) -- never by main_agent or subagents as shared code. Move it next to
its only agent-side consumer:

  multi_agent_chat/shared/sandbox.py
  -> multi_agent_chat/shared/middleware/filesystem/sandbox.py
This commit is contained in:
CREDO23 2026-06-05 13:15:57 +02:00
parent 24b62a63b4
commit 7d866a2279
6 changed files with 10 additions and 6 deletions

View file

@ -829,7 +829,7 @@ async def stream_new_chat(
# downloadable after the Daytona sandbox auto-deletes.
if stream_result and stream_result.sandbox_files:
with contextlib.suppress(Exception):
from app.agents.chat.multi_agent_chat.shared.sandbox import (
from app.agents.chat.multi_agent_chat.shared.middleware.filesystem.sandbox import (
is_sandbox_enabled,
persist_and_delete_sandbox,
)