mirror of
https://github.com/openai/codex.git
synced 2026-11-21 22:50:37 +00:00
## Why Threads that stay in Default mode carry a collaboration-mode prompt even though they have no Plan mode instructions to supersede. ## What changed Omit bundled and model-catalog Default mode instructions until a thread uses Plan mode. Emit Plan mode instructions on entry and Default mode instructions when switching back. Preserve eligible caller-provided instructions and carry the active mode through compaction and resume. ## Testing Cover prompt contents before, during, and after Plan mode in core and app-server tests, including compaction and resume in the core tests. GitOrigin-RevId: b734767da15be53c4eccae71994e46eba63a9ecc