From b6f9aee16dc7dc10fbf7fc17c6757c4183dee058 Mon Sep 17 00:00:00 2001 From: fbauer33 Date: Wed, 8 Jul 2026 15:14:23 -0700 Subject: [PATCH] [codex] increase tool schema compaction threshold (#31497) ## Why The 4,000-byte limit is compacting the tool schemas of some hero usecases. ## What changed Raise the limit to 5,000 bytes and update compaction test fixtures accordingly. --- codex-rs/tools/src/json_schema.rs | 2 +- codex-rs/tools/src/json_schema_tests.rs | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/codex-rs/tools/src/json_schema.rs b/codex-rs/tools/src/json_schema.rs index acffb78b11..7c9edd08e1 100644 --- a/codex-rs/tools/src/json_schema.rs +++ b/codex-rs/tools/src/json_schema.rs @@ -219,7 +219,7 @@ fn deserialize_tool_input_schema(input_schema: JsonValue) -> Result serde_json::Map