-
Notifications
You must be signed in to change notification settings - Fork 135
Closed
Labels
Description
Summary
When a new thread is started and one of its earliest agent responses invokes a client tool, the user can continue chatting for a few turns, but eventually stops receiving agent replies.
The workflow typically fails at the first Agent node with No tool call found for function call output with call_id (...), even though the referenced tool calls are visible in the conversation history.
Impacted Users
Multiple users have reported the same behavior:
- Bug Report: onClientTool handler executes but agent fails to receive output #94 (comment)
- Bug Report: onClientTool handler executes but agent fails to receive output #94 (comment)
Expected Behavior
Users should continue receiving agent responses regardless of conversation length or the number of client tool invocations.
Minimal Reproducible Example
- Use Agent Builder to create and publish a simple workflow with a single Agent node (e.g. gpt-5) that has a client tool configured.
- Use a basic ChatKit configuration to run the chat.
const { control } = useChatKit({ api: { getClientSecret, }, onClientTool: async (tool) => ({ toolCalled: tool.name, }), });
- Start a brand-new thread via the ChatKit UI.
- In the first user message, prompt the agent to trigger the client tool.
- Keep chatting in the same thread by sending several more user messages (typically around 5 is enough); no additional tool calls are required.
- Observe that subsequent user messages no longer receive agent responses and the Agent node errors are logged.
patrykkarny, grahamplace and syrovm

