fix: command node single debug run

- Added FIXME comments to indicate the need for unifying runtime config checking in AdvancedChatAppGenerator and WorkflowAppGenerator.
- Introduced sandbox management in WorkflowService with proper error handling for sandbox release.
- Enhanced runtime feature handling in the workflow execution process.
This commit is contained in:
Harry
2026-01-07 15:22:12 +08:00
parent 1a203031e0
commit 094c9fd802
3 changed files with 39 additions and 15 deletions

View File

@ -513,6 +513,7 @@ class AdvancedChatAppGenerator(MessageBasedAppGenerator):
if workflow is None:
raise ValueError("Workflow not found")
# FIXME: Consolidate runtime config checking into a unified location.
runtime = workflow.features_dict.get("runtime")
graph_engine_layers = ()
if isinstance(runtime, dict) and runtime.get("enabled"):

View File

@ -488,6 +488,7 @@ class WorkflowAppGenerator(BaseAppGenerator):
if workflow is None:
raise ValueError("Workflow not found")
# FIXME: Consolidate runtime config checking into a unified location.
runtime = workflow.features_dict.get("runtime")
if isinstance(runtime, dict) and runtime.get("enabled"):
graph_engine_layers = (*graph_engine_layers, SandboxLayer())