Skip to content

[rmcp-client] Recover from streamable HTTP 404 sessions#13514

Merged
caseychow-oai merged 3 commits intomainfrom
caseychow/codex/support-cloudflare-affinity-cookies-2
Mar 6, 2026
Merged

[rmcp-client] Recover from streamable HTTP 404 sessions#13514
caseychow-oai merged 3 commits intomainfrom
caseychow/codex/support-cloudflare-affinity-cookies-2

Conversation

@caseychow-oai
Copy link
Copy Markdown
Contributor

@caseychow-oai caseychow-oai commented Mar 5, 2026

Summary

  • add one-time session recovery in RmcpClient for streamable HTTP MCP 404 session expiry
  • rebuild the transport and retry the failed operation once after reinitializing the client state
  • extend the test server and integration coverage for 404, 401, single-retry, and non-session failure scenarios

Testing

  • just fmt
  • cargo test -p codex-rmcp-client (the post-rebase run lost its final summary in the terminal; the suite had passed earlier before the rebase)
  • just fix -p codex-rmcp-client
@caseychow-oai
Copy link
Copy Markdown
Contributor Author

caseychow-oai commented Mar 5, 2026

This change is part of the following stack:

Change managed by git-spice.

@etraut-openai etraut-openai added the oai PRs contributed by OpenAI employees label Mar 5, 2026
@caseychow-oai caseychow-oai force-pushed the caseychow/codex/support-cloudflare-affinity-cookies-2 branch 2 times, most recently from 5088385 to ec69a10 Compare March 5, 2026 23:33
@caseychow-oai caseychow-oai force-pushed the caseychow/codex/support-cloudflare-affinity-cookies-2 branch from ec69a10 to ebc4642 Compare March 6, 2026 13:58
@caseychow-oai caseychow-oai merged commit b3765a0 into main Mar 6, 2026
98 of 102 checks passed
@caseychow-oai caseychow-oai deleted the caseychow/codex/support-cloudflare-affinity-cookies-2 branch March 6, 2026 15:02
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

oai PRs contributed by OpenAI employees

3 participants