mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Remove personality selection from the TUI (#44935)
## What changed Remove the `/personality` command, selection popup, tooltip, and associated settings update and persistence handlers. Stop sending a personality override with TUI user turns. GitOrigin-RevId: 0549a1f9dcfd8118340fad4b60fd24d4eee7f93a
This commit is contained in:
1 parent
e8271aa8b4
commit
12e82f44f8
24 files changed
+36
-440
No files matched your search
@@ -4,9 +4,6 @@ use std::sync::LazyLock;
|
||||
|
||||
use codex_models_manager::bundled_models_response;
|
||||
use codex_protocol::openai_models::ModelPreset;
|
||||
use codex_protocol::openai_models::ReasoningEffort;
|
||||
use codex_protocol::openai_models::ReasoningEffortPreset;
|
||||
use codex_protocol::openai_models::default_input_modalities;
|
||||
pub(crate) use codex_utils_absolute_path::test_support::PathBufExt;
|
||||
pub(crate) use codex_utils_absolute_path::test_support::test_path_buf;
|
||||
use serde::Serialize;
|
||||
@@ -21,34 +18,6 @@ pub(crate) static TEST_MODEL_PRESETS: LazyLock<Vec<ModelPreset>> = LazyLock::new
|
||||
presets
|
||||
});
|
||||
|
||||
/// A legacy catalog entry whose personality remains selectable, independent of bundled models.
|
||||
pub(crate) fn legacy_personality_model_preset() -> ModelPreset {
|
||||
ModelPreset {
|
||||
id: "legacy-personality-model".to_string(),
|
||||
model: "legacy-personality-model".to_string(),
|
||||
display_name: "Legacy personality model".to_string(),
|
||||
description: "Test model with selectable personalities.".to_string(),
|
||||
model_specialty: None,
|
||||
default_reasoning_effort: ReasoningEffort::Medium,
|
||||
supported_reasoning_efforts: vec![ReasoningEffortPreset {
|
||||
effort: ReasoningEffort::Medium,
|
||||
description: "medium".to_string(),
|
||||
}],
|
||||
supports_personality: true,
|
||||
additional_speed_tiers: Vec::new(),
|
||||
service_tiers: Vec::new(),
|
||||
default_service_tier: None,
|
||||
available_access_programs: None,
|
||||
is_default: false,
|
||||
upgrade: None,
|
||||
show_in_picker: true,
|
||||
multi_agent_version: None,
|
||||
availability_nux: None,
|
||||
supported_in_api: true,
|
||||
input_modalities: default_input_modalities(),
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn test_path_display(path: &str) -> String {
|
||||
test_path_buf(path).display().to_string()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user