Skip to content

fix: reliability first timeout recovery#20

Merged
lynnswap merged 6 commits intomainfrom
codex/bugfix/reliability-first-timeout-recovery
Feb 13, 2026
Merged

fix: reliability first timeout recovery#20
lynnswap merged 6 commits intomainfrom
codex/bugfix/reliability-first-timeout-recovery

Conversation

@lynnswap
Copy link
Owner

Summary:

  • Normalize timeout/error responses to MCP-compatible JSON-RPC errors (HTTP 200) for both JSON and SSE paths, avoiding text/plain transport breakage.
  • Refactor HTTP handling into dedicated internal components (HTTPRequestValidator, MCPMethodDispatcher, MCPResponseEmitter, MCPErrorResponder) and keep HTTPHandler focused on orchestration.
  • Add upstream health states (healthy/degraded/quarantined) with timeout-driven quarantine, pin clearing, and probe-based recovery; return -32001 upstream unavailable when no healthy upstream is available.
  • Make upstream writes non-blocking via queued async writer path with queue limits and fail-fast -32002 upstream overloaded handling.
  • Extend/adjust tests for timeout mapping cleanup, batch timeout accounting, quarantine behavior, overloaded initialize/request flows, and non-blocking write responsiveness.

Testing:

  • swift test --filter XcodeMCPProxyTests --parallel

Copy link

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

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: 0f17341f17

ℹ️ 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".

Copy link

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

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: b92219252e

ℹ️ 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".

Copy link

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

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: 58ce52302e

ℹ️ 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".

Copy link

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

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: e0421fda0b

ℹ️ 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".

@lynnswap lynnswap merged commit e231c16 into main Feb 13, 2026
@lynnswap lynnswap deleted the codex/bugfix/reliability-first-timeout-recovery branch February 13, 2026 12:57
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.

1 participant