mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
## Why Tool planning built the search index even on turns that never used `tool_search`. ## What changed Build the index on a blocking worker when the first search over a nonempty tool catalog needs it. Regular and Code Mode searches share the same build within a handler and reuse the completed index. The build continues if the search that started it is canceled. ## Testing Add coverage for deferred indexing, concurrent first searches, and reuse of an in-progress build after the first search is canceled. GitOrigin-RevId: eb696e93dbc481a76a5adfe7f5506db971047bd5