deerflow2/backend/src
JeffJiang f836d8e17c
chore(docker): Refactor sandbox state management and improve Docker integration (#1068)
* Refactor sandbox state management and improve Docker integration

- Removed FileSandboxStateStore and SandboxStateStore classes for a cleaner architecture.
- Enhanced LocalContainerBackend to handle port allocation retries and introduced environment variable support for sandbox host configuration.
- Updated Paths class to include host_base_dir for Docker volume mounts and ensured proper permissions for sandbox directories.
- Modified ExtensionsConfig to improve error handling when loading configuration files and adjusted environment variable resolution.
- Updated sandbox configuration to include a replicas option for managing concurrent sandbox containers.
- Improved logging and context management in SandboxMiddleware for better sandbox lifecycle handling.
- Enhanced network port allocation logic to bind to 0.0.0.0 for compatibility with Docker.
- Updated Docker Compose files to ensure proper volume management and environment variable configuration.
- Created scripts to ensure necessary configuration files are present before starting services.
- Cleaned up unused MCP server configurations in extensions_config.example.json.

* Address Copilot review suggestions from PR #1068 (#9)

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2026-03-11 10:03:01 +08:00
..
agents feat(middleware): introduce TodoMiddleware for context-loss detection in todo management (#1041) 2026-03-10 11:24:53 +08:00
channels feat(channels): upload file attachments via IM channels (Slack, Telegram, Feishu) (#1040) 2026-03-10 09:11:57 +08:00
community chore(docker): Refactor sandbox state management and improve Docker integration (#1068) 2026-03-11 10:03:01 +08:00
config chore(docker): Refactor sandbox state management and improve Docker integration (#1068) 2026-03-11 10:03:01 +08:00
gateway chore(docker): Refactor sandbox state management and improve Docker integration (#1068) 2026-03-11 10:03:01 +08:00
mcp feat(mcp): add OAuth support for HTTP/SSE MCP servers (#908) 2026-03-01 22:38:58 +08:00
models feat(middleware): introduce TodoMiddleware for context-loss detection in todo management (#1041) 2026-03-10 11:24:53 +08:00
reflection feat: add IM channels for Feishu, Slack, and Telegram (#1010) 2026-03-08 15:21:18 +08:00
sandbox chore(docker): Refactor sandbox state management and improve Docker integration (#1068) 2026-03-11 10:03:01 +08:00
skills feat(skills): support recursive nested skill loading (#950) 2026-03-02 21:02:03 +08:00
subagents fix(subagents): cleanup background tasks after completion to prevent memory leak (#1030) 2026-03-10 07:41:48 +08:00
tools fix(subagents): cleanup background tasks after completion to prevent memory leak (#1030) 2026-03-10 07:41:48 +08:00
utils chore(docker): Refactor sandbox state management and improve Docker integration (#1068) 2026-03-11 10:03:01 +08:00
__init__.py chore: add an empty __init__.py 2026-01-14 07:16:27 +08:00
client.py Support langgraph checkpointer (#1005) 2026-03-07 21:07:21 +08:00