fix: fix aio sandbox shutdown bug

This commit is contained in:
hetaoBackend
2026-01-30 21:58:43 +08:00
parent 21e12d91eb
commit 8182ed3737
11 changed files with 1271 additions and 4 deletions

View File

@@ -161,8 +161,8 @@ class ExtensionsConfig(BaseModel):
"""
skill_config = self.skills.get(skill_name)
if skill_config is None:
# Default to enable for public skill, disable for custom
return skill_category == "public"
# Default to enable for public & custom skill
return skill_category in ('public', 'custom')
return skill_config.enabled

View File

@@ -21,6 +21,7 @@ class SandboxConfig(BaseModel):
base_url: If set, uses existing sandbox instead of starting new container
auto_start: Whether to automatically start Docker container (default: true)
container_prefix: Prefix for container names (default: deer-flow-sandbox)
idle_timeout: Idle timeout in seconds before sandbox is released (default: 600 = 10 minutes). Set to 0 to disable.
mounts: List of volume mounts to share directories with the container
environment: Environment variables to inject into the container (values starting with $ are resolved from host env)
"""
@@ -49,6 +50,10 @@ class SandboxConfig(BaseModel):
default=None,
description="Prefix for container names",
)
idle_timeout: int | None = Field(
default=None,
description="Idle timeout in seconds before sandbox is released (default: 600 = 10 minutes). Set to 0 to disable.",
)
mounts: list[VolumeMountConfig] = Field(
default_factory=list,
description="List of volume mounts to share directories between host and container",