Skip to content

Preserve longer MCP source descriptions in tool search - #37066

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/002760cdd2e8741e531b45f75f8624ef84334d24
Aug 5, 2026
Merged

Preserve longer MCP source descriptions in tool search#37066
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/002760cdd2e8741e531b45f75f8624ef84334d24

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 5, 2026

Copy link
Copy Markdown

Preserve longer MCP source descriptions in tool search

Why

The 4 KiB aggregate limit can truncate source metadata before it reaches the
model through the tool search description.

What changed

Raise the aggregate source-description limit to 512 KiB while retaining the
existing character-boundary-safe truncation and bounded output.

Testing

Expand unit and RMCP round-trip coverage to verify that substantially longer
Unicode descriptions remain complete within the new limit.

## Why

The 4 KiB aggregate limit can truncate source metadata before it reaches the
model through the tool search description.

## What changed

Raise the aggregate source-description limit to 512 KiB while retaining the
existing character-boundary-safe truncation and bounded output.

## Testing

Expand unit and RMCP round-trip coverage to verify that substantially longer
Unicode descriptions remain complete within the new limit.

GitOrigin-RevId: 002760cdd2e8741e531b45f75f8624ef84334d24
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/002760cdd2e8741e531b45f75f8624ef84334d24 branch from 5a8d8d9 to fcc4ca5 Compare August 5, 2026 09:39
@copyberry
copyberry Bot merged commit fcc4ca5 into main Aug 5, 2026
30 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/002760cdd2e8741e531b45f75f8624ef84334d24 branch August 5, 2026 09:40
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant