Skip to content

fix: redact direct MCP cleanup transport errors - #4078

Merged
seratch merged 5 commits into
mainfrom
fix/mcp-cleanup-transport-redaction
Aug 1, 2026
Merged

fix: redact direct MCP cleanup transport errors#4078
seratch merged 5 commits into
mainfrom
fix/mcp-cleanup-transport-redaction

Conversation

@seratch

@seratch seratch commented Jul 31, 2026

Copy link
Copy Markdown
Member

This pull request fixes credential exposure when MCP cleanup raises a direct HTTPX transport exception rather than an exception group.

Direct HTTPStatusError and RequestError failures now use the same credential-safe mapping and logging policy as grouped cleanup failures. Credential-bearing exceptions are omitted from log records and raised exception graphs, while safe diagnostic exceptions, cancellation behavior, cleanup suppression, and session-state clearing remain unchanged.

@seratch seratch added this to the 0.19.x milestone Jul 31, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bd051ca776

ℹ️ About Codex in GitHub

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

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/mcp/server.py Outdated
Comment thread src/agents/mcp/server.py Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2ab3a03677

ℹ️ About Codex in GitHub

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

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/mcp/server.py Outdated
Comment thread src/agents/mcp/server.py Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3449c115f5

ℹ️ About Codex in GitHub

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

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/mcp/server.py Outdated
Comment thread tests/mcp/test_server_errors.py Outdated
@seratch
seratch force-pushed the fix/mcp-cleanup-transport-redaction branch from 3449c11 to eaa7469 Compare July 31, 2026 23:11

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eaa746999a

ℹ️ About Codex in GitHub

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

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/mcp/server.py
Comment thread src/agents/mcp/server.py
@seratch
seratch enabled auto-merge (squash) August 1, 2026 00:02
@seratch
seratch merged commit 49821c1 into main Aug 1, 2026
9 checks passed
@seratch
seratch deleted the fix/mcp-cleanup-transport-redaction branch August 1, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant