Files
codex/codex-rs/core/src
T
starr-openai 2952beb009 Surface multi-environment choices in environment context (#20646)
## Why
The model needs a way to see which environments are available during a
multi-environment turn without changing the legacy single-environment
prompt surface or pulling replay/persistence changes into the same
review.

## Stack
1. https://github.com/openai/codex/pull/20646 - `EnvironmentContext`
rendering for selected environments (this PR)
2. https://github.com/openai/codex/pull/20669 - selected-environment
ownership and tool config prep
3. https://github.com/openai/codex/pull/20647 - process-tool
`environment_id` routing

## What Changed
- extend `environment_context` so multi-environment turns render an
`<environments>` block with the selected environment ids and cwd values
- keep zero- and single-environment turns on the existing cwd-only
render path
- keep replay and persistence paths on the legacy surface for now so
this PR stays scoped to live prompt rendering
- add focused coverage in
`codex-rs/core/src/context/environment_context_tests.rs`

## Testing
- CI

---------

Co-authored-by: Codex <noreply@openai.com>
2952beb009 ยท 2026-05-01 22:11:06 +00:00
History
..
2026-04-30 14:26:14 -07:00
2026-04-30 14:26:14 -07:00
2026-04-27 18:48:57 -07:00
โ€ฆ
โ€ฆ
2026-04-30 14:26:14 -07:00
2026-04-14 14:26:10 -07:00
2026-04-20 10:27:01 -07:00