mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
## What changed - Use the standard shell executor and remove the zsh fork escalation runtime, `codex-execve-wrapper`, and `shell-escalation` crate. - Ignore `shell_zsh_fork` and `unified_exec_zsh_fork`, emit migration notices for legacy configuration, and warn when ignoring managed requirements for these flags. - Keep the active session's `apply_patch` alias directory readable under restricted filesystem permissions. ## Testing Add coverage for legacy configuration startup and shell execution, migration notice rendering, active alias directory selection, and nested `apply_patch` execution while other files in `CODEX_HOME` remain unreadable. GitOrigin-RevId: 43af461fea32b4980550ee7237effd2bc0646ed8
23 lines
626 B
Rust
23 lines
626 B
Rust
use codex_features::Feature;
|
|
use codex_features::Features;
|
|
use codex_protocol::config_types::ModeKind;
|
|
use pretty_assertions::assert_eq;
|
|
|
|
use super::*;
|
|
|
|
#[test]
|
|
fn request_user_input_modes_follow_default_mode_feature() {
|
|
let mut features = Features::with_defaults();
|
|
features.disable(Feature::DefaultModeRequestUserInput);
|
|
assert_eq!(
|
|
request_user_input_available_modes(&features),
|
|
vec![ModeKind::Plan]
|
|
);
|
|
|
|
features.enable(Feature::DefaultModeRequestUserInput);
|
|
assert_eq!(
|
|
request_user_input_available_modes(&features),
|
|
vec![ModeKind::Default, ModeKind::Plan]
|
|
);
|
|
}
|