Skip to content

Running Agents with GPT-5 models causes arbritary long wait before ending the streaming after results have finished sending. #314

@JoelCCodes

Description

@JoelCCodes

Please read this first

  • Have you read the docs? Agents SDK docs
    Yes
  • Have you searched for related issues? Others may have faced similar issues.
    Yes

Describe the bug

It seems that when running with GPT-5 models and hosted web_search, it creates an arbritary long wait after the response has finished. Sometimes up to 2-3 mines.

Debug information

  • Agents SDK version: V0.0.14

Repro steps

Running a streamed Agent run using GPT-5 or GPT-5 mini and attach the web_search tool.

Expected behavior

I expect the stream to end right away instead it waits for a while before closing out.

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