codex/codex-rs/core/tests
jif 0df4aa6778 Honor MCP tool-list changes within a turn (#54656)
## Why

MCP servers can expose new tools during discovery. Refreshing the catalog after a tool-list notification lets Codex discover and call those tools in the same turn.

## What changed

- Add the disabled-by-default `mcp_tool_list_changed` feature for ordinary MCP servers.
- Track notifications in transport order and refresh catalogs before subsequent discovery or tool binding. Coalesce concurrent refreshes and retry listings invalidated by notifications, including during pagination.
- Retain the previous catalog on refresh failure, apply a retry cooldown, and invalidate affected startup caches. Allow notification refreshes to proceed while admitted calls finish.

## Testing

Add coverage for same-turn discovery and invocation in direct and Code Mode, notifications during startup and pagination, disabled behavior, cache invalidation, and concurrent refreshes with timeout recovery.

GitOrigin-RevId: 9afee8deba00dd9851b5f32625f61f96965aa00c
History 2026-10-16 16:40:17 +00:00
..
common Enable credential masking for remote exec-server commands (#54309) 2026-10-15 14:41:16 +00:00
remote_env_windows Bind capability roots to environment selections (#51493) 2026-10-06 22:39:32 +00:00
suite Honor MCP tool-list changes within a turn (#54656) 2026-10-16 16:40:17 +00:00
all.rs [codex] Use expect in integration tests (#28441) 2026-06-15 21:53:47 -07:00
mcp_trace_propagation.rs Preserve MCP request trace context across transport workers (#47212) 2026-09-22 06:47:07 +00:00
responses_headers.rs Add opt-in output token replay for OpenAI requests (#52742) 2026-10-10 01:25:00 +00:00
windows_sandbox.rs Move Windows sandbox tests into a dedicated integration binary (#51678) 2026-10-07 12:47:04 +00:00