chore: rename (#3648)
This commit is contained in:
@@ -11,7 +11,7 @@ use codex_core::RolloutRecorder;
|
||||
use codex_core::config::Config;
|
||||
use codex_core::config::ConfigOverrides;
|
||||
use codex_core::config::ConfigToml;
|
||||
use codex_core::config::SWIFTFOX_MEDIUM_MODEL;
|
||||
use codex_core::config::GPT_5_CODEX_MEDIUM_MODEL;
|
||||
use codex_core::config::find_codex_home;
|
||||
use codex_core::config::load_config_as_toml_with_cli_overrides;
|
||||
use codex_core::config::persist_model_selection;
|
||||
@@ -381,9 +381,9 @@ async fn run_ratatui_app(
|
||||
&cli,
|
||||
&config,
|
||||
active_profile.as_deref(),
|
||||
internal_storage.swiftfox_model_prompt_seen,
|
||||
internal_storage.gpt_5_codex_model_prompt_seen,
|
||||
) {
|
||||
internal_storage.swiftfox_model_prompt_seen = true;
|
||||
internal_storage.gpt_5_codex_model_prompt_seen = true;
|
||||
if let Err(e) = internal_storage.persist().await {
|
||||
error!("Failed to persist internal storage: {e:?}");
|
||||
}
|
||||
@@ -392,7 +392,7 @@ async fn run_ratatui_app(
|
||||
let switch_to_new_model = upgrade_decision == ModelUpgradeDecision::Switch;
|
||||
|
||||
if switch_to_new_model {
|
||||
config.model = SWIFTFOX_MEDIUM_MODEL.to_owned();
|
||||
config.model = GPT_5_CODEX_MEDIUM_MODEL.to_owned();
|
||||
config.model_reasoning_effort = None;
|
||||
if let Err(e) = persist_model_selection(
|
||||
&config.codex_home,
|
||||
@@ -525,13 +525,13 @@ fn should_show_model_rollout_prompt(
|
||||
cli: &Cli,
|
||||
config: &Config,
|
||||
active_profile: Option<&str>,
|
||||
swiftfox_model_prompt_seen: bool,
|
||||
gpt_5_codex_model_prompt_seen: bool,
|
||||
) -> bool {
|
||||
let login_status = get_login_status(config);
|
||||
|
||||
active_profile.is_none()
|
||||
&& cli.model.is_none()
|
||||
&& !swiftfox_model_prompt_seen
|
||||
&& !gpt_5_codex_model_prompt_seen
|
||||
&& config.model_provider.requires_openai_auth
|
||||
&& matches!(login_status, LoginStatus::AuthMode(AuthMode::ChatGPT))
|
||||
&& !cli.oss
|
||||
|
||||
@@ -3,7 +3,7 @@ use crate::frames::FRAME_TICK_DEFAULT;
|
||||
use crate::tui::FrameRequester;
|
||||
use crate::tui::Tui;
|
||||
use crate::tui::TuiEvent;
|
||||
use codex_core::config::SWIFTFOX_MODEL_DISPLAY_NAME;
|
||||
use codex_core::config::GPT_5_CODEX_DISPLAY_NAME;
|
||||
use color_eyre::eyre::Result;
|
||||
use crossterm::event::KeyCode;
|
||||
use crossterm::event::KeyEvent;
|
||||
@@ -130,7 +130,7 @@ impl WidgetRef for &ModelUpgradePopup {
|
||||
lines.push("".into());
|
||||
|
||||
lines.push(
|
||||
format!(" Codex is now powered by {SWIFTFOX_MODEL_DISPLAY_NAME}, a new model that is")
|
||||
format!(" Codex is now powered by {GPT_5_CODEX_DISPLAY_NAME}, a new model that is")
|
||||
.into(),
|
||||
);
|
||||
lines.push(Line::from(vec![
|
||||
@@ -156,7 +156,7 @@ impl WidgetRef for &ModelUpgradePopup {
|
||||
lines.push(create_option(
|
||||
0,
|
||||
ModelUpgradeOption::TryNewModel,
|
||||
&format!("Yes, switch me to {SWIFTFOX_MODEL_DISPLAY_NAME}"),
|
||||
&format!("Yes, switch me to {GPT_5_CODEX_DISPLAY_NAME}"),
|
||||
));
|
||||
lines.push("".into());
|
||||
lines.push(create_option(
|
||||
|
||||
Reference in New Issue
Block a user