mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Recording response items in an initialized thread builds a turn context without starting a turn. Running host skill discovery for that context is unnecessary. ## What changed Use a dedicated context build mode that skips host skill discovery for history injection. Preserve full discovery for initial context creation, startup prewarming, and execution. If compaction clears the reference context during preparation, rebuild a full context before initializing history. ## Testing Add a regression test verifying that initial injection discovers skills, subsequent injection records items without discovery, and a real turn still discovers skills and sends the selected skill body and both injected messages to the model. GitOrigin-RevId: 4a64e04eb0f21698f9b47160bfcfe5b6d6a68554