diff --git a/backend/packages/harness/deerflow/sandbox/tools.py b/backend/packages/harness/deerflow/sandbox/tools.py index 41e5afe88..4bc515bf7 100644 --- a/backend/packages/harness/deerflow/sandbox/tools.py +++ b/backend/packages/harness/deerflow/sandbox/tools.py @@ -854,9 +854,7 @@ def ensure_sandbox_initialized(runtime: ToolRuntime[ContextT, ThreadState] | Non # Lazy acquisition: get thread_id and acquire sandbox thread_id = get_thread_id(runtime) if thread_id is None: - raise SandboxRuntimeError( - "Thread ID not available in runtime context, runtime config, or LangGraph config" - ) + raise SandboxRuntimeError("Thread ID not available in runtime context, runtime config, or LangGraph config") provider = get_sandbox_provider() sandbox_id = provider.acquire(thread_id) diff --git a/backend/packages/harness/deerflow/tools/builtins/present_file_tool.py b/backend/packages/harness/deerflow/tools/builtins/present_file_tool.py index a6f5e8cf4..ef0cb6242 100644 --- a/backend/packages/harness/deerflow/tools/builtins/present_file_tool.py +++ b/backend/packages/harness/deerflow/tools/builtins/present_file_tool.py @@ -36,9 +36,7 @@ def _normalize_presented_filepath( thread_id = get_thread_id(runtime) if not thread_id: - raise ValueError( - "Thread ID is not available in runtime context, runtime config, or LangGraph thread-local config" - ) + raise ValueError("Thread ID is not available in runtime context, runtime config, or LangGraph thread-local config") thread_data = runtime.state.get("thread_data") or {} outputs_path = thread_data.get("outputs_path")