mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
Close 3 integration gaps between the ported Sandbox system and Agent V2: 1. Fix _invoke_tool_in_sandbox to use SandboxBashSession context manager API correctly (keyword args, bash_tool, ToolReference), with graceful fallback to direct invocation when DifyCli binary is unavailable. 2. Inject sandbox into run_context via _resolve_sandbox_context() in WorkflowBasedAppRunner — automatically creates a sandbox when a tenant has an active sandbox provider configured. 3. Register SandboxLayer in both advanced_chat and workflow app runners for proper sandbox lifecycle cleanup on graph end. Also: make SkillInitializer non-fatal when no skill bundle exists, add node_id to ExecutionContext for sandbox session scoping. Made-with: Cursor |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| app_asset_attrs_initializer.py | ||
| app_assets_initializer.py | ||
| base.py | ||
| dify_cli_initializer.py | ||
| draft_app_assets_initializer.py | ||
| skill_initializer.py | ||