Skip to content

fix: Retry ClosedResourceError on isolated session#2711

Merged
seratch merged 1 commit intomainfrom
dev/elainegan/mcp-closed-resource-isolated-retry
Mar 19, 2026
Merged

fix: Retry ClosedResourceError on isolated session#2711
seratch merged 1 commit intomainfrom
dev/elainegan/mcp-closed-resource-isolated-retry

Conversation

@elainegan-openai
Copy link
Contributor

Summary

  • make ClosedResourceError trigger isolated-session retry for shared-session MCP tool calls
  • add focused regression coverage for the retry classifier

Testing

  • ruff check src/agents/mcp/server.py tests/mcp/test_client_session_retries.py
  • PYTHONPATH=/Users/elainegan/code/openai-agents-python/src pytest -q tests/mcp/test_client_session_retries.py -k "closed_resource_on_isolated_session or retries_5xx_on_isolated_session or retries_cancelled_request_on_isolated_session or does_not_retry_4xx_on_isolated_session"

Co-authored-by: Codex <noreply@openai.com>
@github-actions github-actions bot added bug Something isn't working feature:mcp labels Mar 19, 2026
@elainegan-openai elainegan-openai changed the title [SEVBot] Retry ClosedResourceError on isolated session fix: Retry ClosedResourceError on isolated session Mar 19, 2026
@seratch seratch added this to the 0.12.x milestone Mar 19, 2026
@seratch seratch merged commit 44bbcfe into main Mar 19, 2026
9 checks passed
@seratch seratch deleted the dev/elainegan/mcp-closed-resource-isolated-retry branch March 19, 2026 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:mcp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants