mirror of
https://github.com/openai/codex.git
synced 2026-11-10 21:00:47 +00:00
## What changed Store a shared `ContextWindowIdGenerator` in `LocalAgentRuntime` and pass it into each session. Use it for both initial context window IDs and subsequent window advances, retaining UUID v7 allocation by default. Make `AutoCompactWindow` accept caller-provided IDs instead of allocating them directly. ## Testing Update the window boundary test to verify that advancing installs the supplied ID while preserving the first and previous window IDs. GitOrigin-RevId: a9da4232fe6ab9a53b75e239cb412ceae0fe3216