mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
## What changed - Accept and ignore `features.personality` in user configuration, profiles, and managed requirements. - Remove feature gating from `personality = "none"`, which strips the literal `# Personality` section when preparing model catalog instructions. Preserve explicit base instructions and existing thread instructions. - Document deprecated personality fields in configuration, app-server schemas, and the Python SDK: `friendly` and `pragmatic` no longer select a style, and `supportsPersonality` is always `false`. ## Testing Add regression coverage for ignored legacy flag values and managed requirements, personality opt-out behavior with the flag absent or set to either value, role overrides, and preservation of explicit base instructions, including empty strings. GitOrigin-RevId: 4e12c66b42bfc59d6f151a5b3c28fadc6654ae99
13 lines
443 B
Rust
13 lines
443 B
Rust
use codex_protocol::config_types::Personality;
|
|
use codex_protocol::openai_models::ModelsResponse;
|
|
|
|
#[derive(Debug, Clone, Default)]
|
|
pub struct ModelsManagerConfig {
|
|
pub model_context_window: Option<i64>,
|
|
pub model_auto_compact_token_limit: Option<i64>,
|
|
pub tool_output_token_limit: Option<usize>,
|
|
pub base_instructions: Option<String>,
|
|
pub personality: Option<Personality>,
|
|
pub model_catalog: Option<ModelsResponse>,
|
|
}
|