Skip to content

[MCP caching] route MCP elicitations through session handles - #15257

Closed
jgershen-oai wants to merge 1 commit into
codex/jgershen-mcp-backend-session-boundaryfrom
codex/jgershen-mcp-elicitation-router
Closed

jgershen-oai wants to merge 1 commit into
codex/jgershen-mcp-backend-session-boundaryfrom
codex/jgershen-mcp-elicitation-router

Conversation

@jgershen-oai

@jgershen-oai jgershen-oai commented Mar 20, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #15256

Summary

This adds routing for MCP elicitations, so that they will still go to the right session in a world where multiple sessions share a backend.

  • route MCP elicitations through session handles instead of a fixed session-bound callback
  • make shared-backend request ownership explicit so pooled backends can still deliver prompts to the right thread

Testing

  • cargo check -p codex-core
  • cargo test -p codex-core mcp_connection_manager::tests::

@jgershen-oai jgershen-oai changed the title refactor(core): route MCP elicitations through session handles [MCP caching] route MCP elicitations through session handles Mar 20, 2026
@etraut-openai etraut-openai added the oai PRs contributed by OpenAI employees label Mar 20, 2026
@jgershen-oai
jgershen-oai force-pushed the codex/jgershen-mcp-backend-session-boundary branch from 55e4394 to 7591ac9 Compare March 20, 2026 07:11
@jgershen-oai
jgershen-oai force-pushed the codex/jgershen-mcp-elicitation-router branch from 1b23646 to 4a4b5d1 Compare March 20, 2026 07:11
@jgershen-oai
jgershen-oai marked this pull request as ready for review March 20, 2026 07:41
@jgershen-oai
jgershen-oai requested a review from pakrym-oai March 20, 2026 07:41
@jgershen-oai

Copy link
Copy Markdown
Contributor Author

Closing this PR because the stack was revised to stdio-only MCP pooling. Shared elicitation routing is no longer part of the approach, and the active implementation now lives in #15258 directly on top of #15256.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oai PRs contributed by OpenAI employees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants