Files
codex/codex-rs/core/tests
Will Emmanuel 7131f15461 Include the host subagent roster in initial environment context (#65118)
## 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
2026-12-02 00:28:07 +00:00
..