Skip to content

fix(openai): handle Responses streams on MCP list-tools items - #753

Merged
Abhijeet Prasad (AbhiPrasad) merged 2 commits into
mainfrom
abhi/sdk-337-python-auto_instrument-crashes-responses-streams-on-mcp-list
Sep 9, 2026
Merged

fix(openai): handle Responses streams on MCP list-tools items#753
Abhijeet Prasad (AbhiPrasad) merged 2 commits into
mainfrom
abhi/sdk-337-python-auto_instrument-crashes-responses-streams-on-mcp-list

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

Avoid an AttributeError when hosted MCP tools emit mcp_list_tools items, which have no status field. Preserve statuses on items that provide them.

Fixes https://linear.app/braintrustdata/issue/SDK-337

Avoid an AttributeError when hosted MCP tools emit `mcp_list_tools` items,
which have no `status` field. Preserve statuses on items that provide them.

Add cassette-backed sync and async regression coverage, including partial
stream output and token metrics. Skip OpenAI 1.92.0 MCP coverage on Python
3.14 because its upstream parser cannot handle immutable unions.

Fixes SDK-337
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) changed the title fix(python): handle responses stream items without status fix(openai): handle responses stream items without status Sep 8, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-08T23:26:34.495965Z 686bda0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) changed the title fix(openai): handle responses stream items without status fix(openai): handle Responses streams on MCP list-tools items Sep 8, 2026
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 21b473c into main Sep 9, 2026
83 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the abhi/sdk-337-python-auto_instrument-crashes-responses-streams-on-mcp-list branch September 9, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants