From 0c3917ee0fd189e1e5718efe4c6f1688c36f0943 Mon Sep 17 00:00:00 2001 From: Hyu Date: Wed, 30 Sep 2026 15:50:48 +0800 Subject: [PATCH] style(api): format the streamed Agent debug helper with ruff --- .../pkg/api/http/controller/groups/agent_debug_stream.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/langbot/pkg/api/http/controller/groups/agent_debug_stream.py b/src/langbot/pkg/api/http/controller/groups/agent_debug_stream.py index a0480541a..65c198c25 100644 --- a/src/langbot/pkg/api/http/controller/groups/agent_debug_stream.py +++ b/src/langbot/pkg/api/http/controller/groups/agent_debug_stream.py @@ -29,11 +29,7 @@ def debug_stream_response(service, context, agent_uuid: str, payload: dict) -> q application = getattr(service, 'ap', None) persistence_mgr = getattr(application, 'persistence_mgr', None) tenant_scope = getattr(persistence_mgr, 'tenant_scope', None) - scope = ( - tenant_scope(context.workspace_uuid) - if callable(tenant_scope) - else contextlib.nullcontext() - ) + scope = tenant_scope(context.workspace_uuid) if callable(tenant_scope) else contextlib.nullcontext() try: # The streamed body is emitted after the request handler returned, # so the request's tenant scope has already closed: carry the