Skip to content

Users stop receiving agent responses in longer ChatKit threads involving client tool calls #96

@pstepaniuk

Description

@pstepaniuk

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:

Expected Behavior

Users should continue receiving agent responses regardless of conversation length or the number of client tool invocations.

Minimal Reproducible Example

  1. 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.
    📸 Example Image
  2. Use a basic ChatKit configuration to run the chat.
    const { control } = useChatKit({
      api: {
        getClientSecret,
      },
      onClientTool: async (tool) => ({
        toolCalled: tool.name,
      }),
    });
  3. Start a brand-new thread via the ChatKit UI.
  4. In the first user message, prompt the agent to trigger the client tool.
    📸 Example Image
  5. Keep chatting in the same thread by sending several more user messages (typically around 5 is enough); no additional tool calls are required.
  6. Observe that subsequent user messages no longer receive agent responses and the Agent node errors are logged.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions