From 6098f4766a864501ee702740974db885f33efb31 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 7 May 2026 18:31:44 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20Bedrock=20read=20timeout=20causing=20retr?= =?UTF-8?q?y=20=E2=86=92=20duplicate=20messages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agentclaw/app/agent_claw_main/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agentclaw/app/agent_claw_main/main.py b/agentclaw/app/agent_claw_main/main.py index 40c5f2e..9b22404 100644 --- a/agentclaw/app/agent_claw_main/main.py +++ b/agentclaw/app/agent_claw_main/main.py @@ -258,9 +258,11 @@ async def main(payload: dict, context): system_prompt = build_system_prompt(user_context=user_context, actor_id=actor_id) # Model: claude-sonnet-4-6 via cross-region inference + from botocore.config import Config as BotoConfig model = BedrockModel( model_id="us.anthropic.claude-sonnet-4-6", region_name="us-east-1", + boto_client_config=BotoConfig(read_timeout=600, connect_timeout=10), ) base_tools = [web_search, web_fetch, read_workspace_file, write_workspace_file,