Files
codex/codex-rs/core/src/session
jif b9cbe0d977 Require V3 workers to report results with send_message (#65076)
## Why

A V3 worker can resume its conversation after stopping. Reporting results
explicitly lets the worker decide when to send a result to its parent,
independently of when a turn ends.

## What changed

Stop forwarding V3 workers' final answers as automatic success results.
Continue forwarding failures and preserve automatic results for V2. Update
V3 prompts and tool descriptions to tell workers to send their result and
call `stop_agent` to release their slot.

Keep `send_message` available in the V3 native tool set even when
`disable_direct_message` is set. When native tools are enabled, require both
`send_message` and `stop_agent` to survive tool policy filtering for V3
workers, including on resume.

Track accepted worker-to-parent reports until they are written to the
parent's rollout. Preserve unread reports for the next turn if a turn
triggered by a report is interrupted.

## Testing

Extend the idle eviction scenario to verify that a resumed V3 worker's
explicit report reaches the parent's rollout exactly once after turn
admission is deferred and the subsequent wake is interrupted.

GitOrigin-RevId: 9bf95a4358bca9778797c7064f9eaf20c8679a81
2026-12-01 20:16:42 +00:00
..