Skip to content

Prepare MCP and plugin recommendations concurrently - #35675

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/295ec268331bf05304e6b313925fd2b6c2ae4190
Jul 27, 2026
Merged

Prepare MCP and plugin recommendations concurrently#35675
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/295ec268331bf05304e6b313925fd2b6c2ae4190

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 27, 2026

Copy link
Copy Markdown

Prepare MCP and plugin recommendations concurrently

Why

Turn preparation waited for MCP discovery before requesting endpoint plugin
recommendations, adding their latencies together.

What changed

  • Prepare the MCP runtime and endpoint plugin recommendations concurrently.
  • Wait for both results before building tools and starting model sampling.
  • Cancel the combined preparation when the turn is interrupted.

Testing

  • Add coverage that gates MCP initialization and verifies recommendation fetching
    overlaps it while the final request includes both results.
  • Verify interrupting concurrent preparation prevents model sampling.

## Why

Turn preparation waited for MCP discovery before requesting endpoint plugin
recommendations, adding their latencies together.

## What changed

- Prepare the MCP runtime and endpoint plugin recommendations concurrently.
- Wait for both results before building tools and starting model sampling.
- Cancel the combined preparation when the turn is interrupted.

## Testing

- Add coverage that gates MCP initialization and verifies recommendation fetching
  overlaps it while the final request includes both results.
- Verify interrupting concurrent preparation prevents model sampling.

GitOrigin-RevId: 295ec268331bf05304e6b313925fd2b6c2ae4190
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/295ec268331bf05304e6b313925fd2b6c2ae4190 branch from f829c4c to bbeee9a Compare July 27, 2026 21:44
@copyberry
copyberry Bot merged commit bbeee9a into main Jul 27, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/295ec268331bf05304e6b313925fd2b6c2ae4190 branch July 27, 2026 21:45
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants