---
type: email
from: gn00295120 <notifications@github.com>
subject: Re: [openai/openai-agents-python] fix: MCP tools return error

 messages instead of crashing on HTTP errors (fixes #879) (PR #1945)
received: 2026-03-06 08:10:04
date_header: Mon, 20 Oct 2025 15:31:43 -0700
priority: normal
status: awaiting_approval
uid: 33111
---

## Email Content

**From:** gn00295120 <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] fix: MCP tools return error

 messages instead of crashing on HTTP errors (fixes #879) (PR #1945)
**Date:** Mon, 20 Oct 2025 15:31:43 -0700

### Body (preview)

gn00295120 left a comment (openai/openai-agents-python#1945)



Closing this PR after further analysis. The proposed fix has a critical issue: converting exceptions to JSON strings creates silent failures and breaks existing tests that expect `AgentsException`.



A proper solution requires changes at the agent loop level to catch and handle `AgentsException` gracefully, rather than converting exceptions to JSON at the tool level.



I'll comment on #879 with the analysis and suggested approach.



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/pull/1945#issuecomment-3423964368

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/pull/1945/c3423964368@github.com>

---

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