mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why When a turn has no execution environments or other environment context to report, Codex can skip the environment update before reading the host roster. The model then misses any active subagents in that roster. ## What changed Keep the initial environment update until Codex has had a chance to attach the host roster. Emit `<environment_context>` when the roster is its only content, and drop the update if it is still empty. ## Testing Add integration coverage for roster-only context and empty context in both the default and per-environment formats. GitOrigin-RevId: 6ceffd9aa13fefa31387c4d598a81a4281554c1c