dify/api/core/app/apps/workflow
Yansong Zhang 5cdae671d5 feat(api): integrate Sandbox Provider into Agent V2 execution pipeline
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
2026-04-10 10:14:42 +08:00
..
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
app_config_manager.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
app_generator.py chore(api): align Python support with 3.12 (#34419) 2026-04-02 05:07:32 +00:00
app_queue_manager.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
app_runner.py feat(api): integrate Sandbox Provider into Agent V2 execution pipeline 2026-04-10 10:14:42 +08:00
errors.py feat: Human Input Node (#32060) 2026-02-09 14:57:23 +08:00
generate_response_converter.py rm type ignore (#25715) 2025-10-21 11:26:58 +08:00
generate_task_pipeline.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00