From efb4b3b5186389887a3d5963895d2558a1161961 Mon Sep 17 00:00:00 2001 From: "Otto (AGPT)" Date: Thu, 19 Feb 2026 02:42:05 +0000 Subject: [PATCH] fix: Update _pending_tool_outputs type to dict[str, list[str]] --- autogpt_platform/backend/backend/copilot/sdk/tool_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt_platform/backend/backend/copilot/sdk/tool_adapter.py b/autogpt_platform/backend/backend/copilot/sdk/tool_adapter.py index f7cd6d0c69..4f9adf4412 100644 --- a/autogpt_platform/backend/backend/copilot/sdk/tool_adapter.py +++ b/autogpt_platform/backend/backend/copilot/sdk/tool_adapter.py @@ -41,7 +41,7 @@ _current_session: ContextVar[ChatSession | None] = ContextVar( # Stash for MCP tool outputs before the SDK potentially truncates them. # Keyed by tool_name → full output string. Consumed (popped) by the # response adapter when it builds StreamToolOutputAvailable. -_pending_tool_outputs: ContextVar[dict[str, str]] = ContextVar( +_pending_tool_outputs: ContextVar[dict[str, list[str]]] = ContextVar( "pending_tool_outputs", default=None # type: ignore[arg-type] )