mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
## Why Search MCP and native web search produce provider-specific references. Switching providers after a thread resumes can mix those references and break follow-up calls that use them. ## What changed Persist whether a thread has used Search MCP, native web search, or neither. Restore that state from response history, including compacted history, and use legacy attribution and fallback markers for older threads. When resumed history lacks a search state or legacy attribution checkpoint, withhold native fallback unless a legacy marker identifies native search. Require every Search MCP call to claim the thread's search provider before execution, including calls retained by Code Mode. ## Testing Cover resuming a thread with Search MCP references after discovery becomes unavailable, both with a saved search state and with imported history that lacks search checkpoints. GitOrigin-RevId: 100d21c92b0bdbf737ec36c3474f0bc020df8efc