[codex] Split codex turn logic (#18206)

## Summary
- Move Codex turn execution logic from `codex.rs` into `codex/turn.rs`.
- Keep the existing crate-visible `run_turn`, `build_prompt`,
`built_tools`, and `get_last_assistant_message_from_turn` surface
re-exported from `codex.rs`.
- Preserve test access for moved turn helpers while reducing the main
`codex.rs` orchestration footprint.

## Stack
- Base: #18200 (`pakrym/split-codex-handlers`)

## Testing
- `CARGO_INCREMENTAL=0 cargo test -p codex-core --lib`
- `just fix -p codex-core`
- `just fmt`
- `git diff --check`
This commit is contained in:
pakrym-oai
2026-04-16 15:28:59 -07:00
committed by GitHub
parent fa5d14e276
commit a1736fcd20
2 changed files with 2188 additions and 2133 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff