---
type: email
from: reachlin <notifications@github.com>
subject: Re: [openai/openai-agents-python] Add `timeout` feature for agent

 runs (Issue #1425)
received: 2026-03-06 08:03:11
date_header: Tue, 14 Oct 2025 01:54:36 -0700
priority: normal
status: awaiting_approval
uid: 32503
---

## Email Content

**From:** reachlin <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] Add `timeout` feature for agent

 runs (Issue #1425)
**Date:** Tue, 14 Oct 2025 01:54:36 -0700

### Body (preview)

reachlin left a comment (openai/openai-agents-python#1425)



pls add this, some mcp servers are very slow.



`Error invoking MCP tool read_screen: Timed out while waiting for response to ClientRequest. Waited 5.0 seconds.

---------------------------------------------------------------------------

WouldBlock                                Traceback (most recent call last)

File [/opt/miniconda3/lib/python3.12/site-packages/anyio/streams/memory.py:111](http://127.0.0.1:8888/opt/miniconda3/lib/python3.12/site-packages/anyio/streams/memory.py#line=110), in MemoryObjectReceiveStream.receive(self)

    110 try:

--> 111     return self.receive_nowait()

    112 except WouldBlock:

    113     # Add ourselves in the queue



File [/opt/miniconda3/lib/python3.12/site-packages/anyio/streams/memory.py:106](http://127.0.0.1:8888/opt/miniconda3/lib/python3.12/site-packages/anyio/streams/memory.py#line=105), in MemoryObjectReceiveStream.receive_nowait(self)

    104     raise EndOfStream

--> 106 raise WouldBlock



WouldBlock: 



During handling of the above exception, another exception occurred:



CancelledError                            Traceback (most recent call last)

File [/opt/miniconda3/lib/python3.12/site-packages/anyio/_core/_tasks.py:115](http://127.0.0.1:8888/opt/miniconda3/lib/python3.12/site-packages/anyio/_core/_tasks.py#line=114), in fail_after(delay, shield)

    112 with get_async_backend().create_cancel_scope(

    113     deadline=deadline, shield=shield

    114 ) as cancel_scope:

--> 115     yield cancel_scope

    117 if cancel_scope.cancelled_caught and current_time() >= cancel_scope.deadline:



File [/opt/miniconda3/lib/python3.12/site-packages/mcp/shared/session.py:272](http://127.0.0.1:8888/opt/miniconda3/lib/python3.12/site-packages/mcp/shared/session.py#line=271), in BaseSession.send_request(self, request, result_type, request_read_timeout_seconds, metadata, progress_callback)

    271     with anyio.fail_after(timeout):

--> 272         re

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
