From 2e8e070b086023c310c5f0c7558083e8320ae541 Mon Sep 17 00:00:00 2001 From: Alex Bozarth Date: Mon, 4 May 2026 17:30:48 -0500 Subject: [PATCH] fix: silence false-positive context warning in react framework react() serializes all aact() calls with sequential awaits, so the SimpleContext warning does not apply. Assisted-by: Claude Code Signed-off-by: Alex Bozarth --- mellea/stdlib/frameworks/react.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mellea/stdlib/frameworks/react.py b/mellea/stdlib/frameworks/react.py index 117af4866..c39338990 100644 --- a/mellea/stdlib/frameworks/react.py +++ b/mellea/stdlib/frameworks/react.py @@ -90,6 +90,7 @@ async def react( model_options=model_options, tool_calls=True, await_result=True, + silence_context_type_warning=True, ) # Have to assert this due to type hints. @@ -119,6 +120,7 @@ async def react( model_options=model_options, format=format, await_result=True, + silence_context_type_warning=True, ) assert isinstance(next_context, ChatContext) context = next_context