Skip to content

Apply MCP startup timeouts during client creation - #32781

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1967c62f943d55f6aa18792d4488e52c22f1e717
Jul 13, 2026
Merged

Apply MCP startup timeouts during client creation#32781
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1967c62f943d55f6aa18792d4488e52c22f1e717

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 13, 2026

Copy link
Copy Markdown

Apply MCP startup timeouts during client creation

What changed

  • Apply each server's startup_timeout_sec (or the default) while creating the
    MCP client, so the deadline also covers transport setup.
  • Launch local stdio servers on a blocking task so synchronous command
    resolution and process creation do not prevent the deadline from firing.
  • Recognize the new client-startup timeout error and show the existing
    startup_timeout_sec configuration hint.

Testing

  • Extend the timeout error display test to cover the client-startup timeout.

## What changed

- Apply each server's `startup_timeout_sec` (or the default) while creating the
  MCP client, so the deadline also covers transport setup.
- Launch local stdio servers on a blocking task so synchronous command
  resolution and process creation do not prevent the deadline from firing.
- Recognize the new client-startup timeout error and show the existing
  `startup_timeout_sec` configuration hint.

## Testing

- Extend the timeout error display test to cover the client-startup timeout.

GitOrigin-RevId: 1967c62f943d55f6aa18792d4488e52c22f1e717
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/1967c62f943d55f6aa18792d4488e52c22f1e717 branch from 840de38 to 8b2c84d Compare July 13, 2026 12:02
@copyberry
copyberry Bot merged commit 8b2c84d into main Jul 13, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/1967c62f943d55f6aa18792d4488e52c22f1e717 branch July 13, 2026 12:03
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 13, 2026
@pax-k
pax-k temporarily deployed to issue-triage July 13, 2026 12:06 — with GitHub Actions Inactive
@pax-k
pax-k temporarily deployed to issue-triage July 13, 2026 12:06 — with GitHub Actions Inactive
@pax-k
pax-k temporarily deployed to issue-triage July 13, 2026 12:06 — with GitHub Actions Inactive
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.