core-agent-ide/codex-rs/app-server/tests/suite/v2
Michael Bolin 1af2a37ada
chore: remove codex-core public protocol/shell re-exports (#12432)
## Why

`codex-rs/core/src/lib.rs` re-exported a broad set of types and modules
from `codex-protocol` and `codex-shell-command`. That made it easy for
workspace crates to import those APIs through `codex-core`, which in
turn hides dependency edges and makes it harder to reduce compile-time
coupling over time.

This change removes those public re-exports so call sites must import
from the source crates directly. Even when a crate still depends on
`codex-core` today, this makes dependency boundaries explicit and
unblocks future work to drop `codex-core` dependencies where possible.

## What Changed

- Removed public re-exports from `codex-rs/core/src/lib.rs` for:
- `codex_protocol::protocol` and related protocol/model types (including
`InitialHistory`)
  - `codex_protocol::config_types` (`protocol_config_types`)
- `codex_shell_command::{bash, is_dangerous_command, is_safe_command,
parse_command, powershell}`
- Migrated workspace Rust call sites to import directly from:
  - `codex_protocol::protocol`
  - `codex_protocol::config_types`
  - `codex_protocol::models`
  - `codex_shell_command`
- Added explicit `Cargo.toml` dependencies (`codex-protocol` /
`codex-shell-command`) in crates that now import those crates directly.
- Kept `codex-core` internal modules compiling by using `pub(crate)`
aliases in `core/src/lib.rs` (internal-only, not part of the public
API).
- Updated the two utility crates that can already drop a `codex-core`
dependency edge entirely:
  - `codex-utils-approval-presets`
  - `codex-utils-cli`

## Verification

- `cargo test -p codex-utils-approval-presets`
- `cargo test -p codex-utils-cli`
- `cargo check --workspace --all-targets`
- `just clippy`
2026-02-20 23:45:35 -08:00
..
account.rs fix(app-server): for external auth, replace id_token with chatgpt_acc… (#11240) 2026-02-09 20:48:58 -08:00
analytics.rs Reapply "Add app-server transport layer with websocket support" (#11370) 2026-02-11 18:13:39 +00:00
app_list.rs [apps] Enforce simple logo url format. (#12374) 2026-02-20 22:05:55 +00:00
collaboration_mode_list.rs Remove test-support feature from codex-core and replace it with explicit test toggles (#11405) 2026-02-10 22:44:02 -08:00
compaction.rs Treat compaction failure as failure state (#10927) 2026-02-06 13:51:46 -08:00
config_rpc.rs [apps] Implement apps configs. (#12086) 2026-02-20 12:05:21 -08:00
connection_handling_websocket.rs Reapply "Add app-server transport layer with websocket support" (#11370) 2026-02-11 18:13:39 +00:00
dynamic_tools.rs feat(app-server, core): allow text + image content items for dynamic tool outputs (#10567) 2026-02-04 16:12:47 -08:00
experimental_api.rs feat: opt-out of events in the app-server (#11319) 2026-02-10 18:04:52 +00:00
experimental_feature_list.rs Add stage field for experimental flags. (#10793) 2026-02-05 23:31:04 +00:00
initialize.rs feat: opt-out of events in the app-server (#11319) 2026-02-10 18:04:52 +00:00
mod.rs app-server: expose loaded thread status via read/list and notifications (#11786) 2026-02-18 15:20:03 -08:00
model_list.rs fix: send unfiltered models over model/list (#11793) 2026-02-13 16:26:32 -08:00
output_schema.rs Add text element metadata to types (#9235) 2026-01-14 16:41:50 -08:00
plan_item.rs chore: rm remote models fflag (#11699) 2026-02-17 11:43:16 -08:00
rate_limits.rs feat: support multiple rate limits (#11260) 2026-02-10 20:09:31 -08:00
request_user_input.rs change collaboration mode to struct (#9793) 2026-01-23 17:00:23 -08:00
review.rs chore: remove codex-core public protocol/shell re-exports (#12432) 2026-02-20 23:45:35 -08:00
safety_check_downgrade.rs Chore: remove response model check and rely on header model for downgrade (#12061) 2026-02-18 01:50:06 +00:00
skills_list.rs feat: extend skills/list to support additional roots. (#10835) 2026-02-09 13:30:38 -08:00
thread_archive.rs app-server: Emit thread archive/unarchive notifications (#12030) 2026-02-17 14:53:58 -08:00
thread_fork.rs Add field to Thread object for the latest rename set for a given thread (#12301) 2026-02-20 18:26:57 -08:00
thread_list.rs feat: add nick name to sub-agents (#12320) 2026-02-20 14:39:49 +00:00
thread_loaded_list.rs [chore] move app server tests from chat completion to responses (#8939) 2026-01-08 22:27:55 +00:00
thread_read.rs Add field to Thread object for the latest rename set for a given thread (#12301) 2026-02-20 18:26:57 -08:00
thread_resume.rs tests: centralize in-flight turn cleanup helper (#12271) 2026-02-20 01:47:34 +00:00
thread_rollback.rs Add field to Thread object for the latest rename set for a given thread (#12301) 2026-02-20 18:26:57 -08:00
thread_start.rs Add field to Thread object for the latest rename set for a given thread (#12301) 2026-02-20 18:26:57 -08:00
thread_status.rs app-server: expose loaded thread status via read/list and notifications (#11786) 2026-02-18 15:20:03 -08:00
thread_unarchive.rs Add field to Thread object for the latest rename set for a given thread (#12301) 2026-02-20 18:26:57 -08:00
turn_interrupt.rs Fix test_shell_command_interruption flake (#10649) 2026-02-04 22:19:06 +00:00
turn_start.rs chore: remove codex-core public protocol/shell re-exports (#12432) 2026-02-20 23:45:35 -08:00
turn_start_zsh_fork.rs chore: remove codex-core public protocol/shell re-exports (#12432) 2026-02-20 23:45:35 -08:00
turn_steer.rs tests: centralize in-flight turn cleanup helper (#12271) 2026-02-20 01:47:34 +00:00
windows_sandbox_setup.rs app-server support for Windows sandbox setup. (#12025) 2026-02-18 13:03:16 -08:00