mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
## Why The Responses API accepts tool names up to 128 bytes, but MCP tool name normalization limited model-visible names to 64 bytes. ## What changed - Preserve MCP tool names up to the 128-byte Responses API limit. - Continue shortening and hashing names that exceed the limit so generated names remain bounded and unique. ## Testing - Cover names at the 128-byte boundary and immediately above it. - Verify distinct long names remain 128 bytes and code-mode compatible. GitOrigin-RevId: 75544d00e75dd0e9328b3e2ac763d26f9cc99a48