mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
Apply model catalog overrides to history, notes, and context tools (#56313)
## What changed - Read optional tool descriptions and parameter schemas for `history`, `notes`, `new_context`, and `get_context_remaining` from the acting model's catalog messages. - Support catalog namespace descriptions for history and notes, preserving explicit empty and whitespace descriptions. - Share catalog override handling across native tools and MCP resource helpers. Keep bundled schemas when overrides are invalid, preserve encrypted parameters, and leave tool identity and transport fields unchanged. ## Testing Add coverage for sparse catalog serialization, schema fallback and encryption preservation, per-step tool definitions, and context tool updates when switching models. Extend outgoing-request tests to verify history and notes overrides while retaining history image attachments. GitOrigin-RevId: 1adac8b5009f95c91adba491f20a4e2e2dc91475
This commit is contained in:
@@ -44,7 +44,7 @@ pub(crate) fn create_wait_tool(
|
||||
strict: false,
|
||||
parameters: parameters_override
|
||||
.and_then(
|
||||
|parameters| match crate::tools::catalog_parameters::parse(parameters) {
|
||||
|parameters| match codex_tools::parse_catalog_tool_parameters(parameters) {
|
||||
Ok(parameters) => Some(parameters),
|
||||
Err(reason) => {
|
||||
tracing::warn!(
|
||||
|
||||
Reference in New Issue
Block a user