mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why When an environment detaches after a session resumes, the context update needs to mark it unavailable under the same ID the model saw earlier. ## What changed Render environment entries with session-scoped aliases such as `env731` when a mapping is supplied. Save the aliases and naming mode in snapshots so removal updates can use the recorded names and the naming mode survives when the last environment detaches. Keep registered IDs as snapshot keys for compatibility with existing rollouts. The session still renders registered names. ## Testing Add regression tests for removing the last aliased environment after resume and refreshing the context when a saved snapshot has inconsistent IDs. GitOrigin-RevId: 730fe3d366a9e0bc3e5eb9c6139051901c4f5f96