Skip to content

Share optional MCP startup grace across connection sets - #36011

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3494969ee7002c70ce9e4ffd370e46a22d38cc11
Jul 29, 2026
Merged

Share optional MCP startup grace across connection sets#36011
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3494969ee7002c70ce9e4ffd370e46a22d38cc11

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 29, 2026

Copy link
Copy Markdown

Share optional MCP startup grace across connection sets

Why

Each connection set could restart the one-second startup grace for the same
cacheable optional MCP server, repeatedly delaying catalog capture while that
server was still pending.

What changed

  • Store the optional startup deadline in the shared tool catalog cache entry.
  • Reuse that deadline until a catalog is published, and allow a fresh grace
    period after the cached catalog expires.
  • Preserve per-connection-set startup grace for servers that disable catalog
    caching.

Testing

Added a paused-time test covering shared deadlines, immediate cached-tool reuse,
cache expiration, and disabled caching.

## Why

Each connection set could restart the one-second startup grace for the same
cacheable optional MCP server, repeatedly delaying catalog capture while that
server was still pending.

## What changed

- Store the optional startup deadline in the shared tool catalog cache entry.
- Reuse that deadline until a catalog is published, and allow a fresh grace
  period after the cached catalog expires.
- Preserve per-connection-set startup grace for servers that disable catalog
  caching.

## Testing

Added a paused-time test covering shared deadlines, immediate cached-tool reuse,
cache expiration, and disabled caching.

GitOrigin-RevId: 3494969ee7002c70ce9e4ffd370e46a22d38cc11
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/3494969ee7002c70ce9e4ffd370e46a22d38cc11 branch from a5d5a53 to 85c082c Compare July 29, 2026 18:53
@copyberry
copyberry Bot merged commit 85c082c into main Jul 29, 2026
31 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/3494969ee7002c70ce9e4ffd370e46a22d38cc11 branch July 29, 2026 18:54
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants