Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#16510·LibreChat

[Bug]: Handoff from a Claude agent to a GPT agent on Bedrock fails: "doesn't support the reasoningContent.reasoningText.text field"

Author: devanchohanCreated Sep 29, 2026Updated Sep 29, 2026

What happened?

An agent on Bedrock Claude hands off to an agent on a Bedrock OpenAI model (global.openai.gpt-6-luna). If the Claude agent does some work first, such as a web search, and then hands off in the same run, the receiving agent's first request fails and the user sees "The model provider could not complete this request." Bedrock rejects it because the assistant turns still carry Claude's reasoning:

ValidationException: This model doesn't support the reasoningContent.reasoningText.text field for assistant messages.

A handoff before Claude has reasoned works. Expected: the receiving agent gets the conversation without the other model's reasoning.

Cause: @librechat/agents drops reasoning that came from another provider, but both agents are on Bedrock, so convertToConverseMessages passes Claude's reasoning_content through to GPT. Proposed fix: LibreChat-AI/agents#581 (replay reasoning only to Claude models, or when the model is unknown).

Version Information

v0.8.8-rc3 (Docker), @librechat/agents 3.8.7. The converter code is the same in rc4 (3.9.1) and in agents v3.9.8 / main.

Steps to Reproduce

  1. Agent B: global.openai.gpt-6-luna on Bedrock, with web search.
  2. Agent A: eu.anthropic.claude-sonnet-5 on Bedrock, with web search and a handoff to Agent B.
  3. Ask Agent A: "Search the web for today's top UK politics story, then hand over to Agent B to summarise it."
  4. Agent A searches and hands off; Agent B's first request fails.

Relevant log output

LibreChat logs only upstream_model_error. The Bedrock message above came from wrapping BedrockRuntimeClient.send to log provider errors. We've worked around it with a preload that removes reasoningText blocks from assistant turns in Converse requests to non-Claude models; verified in staging and production.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Source: danny-avila/LibreChat

View original on GitHubView discussion on GitHub