How to display GPT-5-mini “thinking” traces in the UI

Hey folks :waving_hand:

I’m using LangGraph Cloud as my backend and the NewAgentChat UI on the frontend.
With gpt-5-mini, I’d like to stream not just the final response but also the “thinking” traces (on_thinking events).

:backhand_index_pointing_right: What’s the recommended way to surface those on_thinking events from LangGraph Cloud and display them in NewAgentChat?

Hi @Shubham230198

by NewAgentChat UI you mean GitHub - langchain-ai/agent-chat-ui: 🦜💬 Web app for interacting with any LangGraph agent (PY & TS) via a chat interface., right?

Hi @pawel-twardziak
yes i am using GitHub - langchain-ai/agent-chat-ui: 🦜💬 Web app for interacting with any LangGraph agent (PY & TS) via a chat interface. on my client side.