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 |
||
|---|---|---|
| .. | ||
| output_parser | ||
| patterns | ||
| prompt | ||
| strategy | ||
| __init__.py | ||
| agent_app_runner.py | ||
| base_agent_runner.py | ||
| cot_agent_runner.py | ||
| cot_chat_agent_runner.py | ||
| cot_completion_agent_runner.py | ||
| entities.py | ||
| errors.py | ||
| fc_agent_runner.py | ||
| plugin_entities.py | ||