mirror of
https://github.com/openai/codex.git
synced 2026-06-01 19:02:59 +00:00
[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:
File diff suppressed because it is too large
Load Diff
2169
codex-rs/core/src/codex/turn.rs
Normal file
2169
codex-rs/core/src/codex/turn.rs
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user