Environment:
managed-deepagents 0.8.3
langchain-openai 1.6.6
langchain-core 1.6.5
langchain 1.4.3
langgraph-api 0.15.1
openai 3.20.0
macOS
agent.py:
from managed_deepagents import define_deep_agent
agent = define_deep_agent(
name=“deep-agent”,
model=“openai:gpt-5.6-terra”,
tools=[{“type”: “web_search”}],
)
Steps to reproduce:
- Run
mda dev. - Open Studio.
- Ask: “What changed in Managed Deep Agents this week?”
- The trace shows successful
web_search_callevents and a valid final text response. - Studio Chat does not render the final answer. It instead displays raw AIMessage fields such as usage_metadata / invalid_tool_calls.
- Run the same prompt using
mda chat. mda chatrenders the full final response correctly, including citations.
Expected:
Studio Chat should render the final text content of the AIMessage.
Actual:
Studio Chat displays raw message metadata instead of the final text when the message contains OpenAI Responses API web_search blocks.
Additional evidence:
- OpenAI web search completes successfully.
- The final answer exists in the LangSmith trace.
mda chatrenders the same backend response correctly.