diff --git a/codex-rs/core/src/internal_storage.rs b/codex-rs/core/src/internal_storage.rs index f7d17e88..d6f71ff6 100644 --- a/codex-rs/core/src/internal_storage.rs +++ b/codex-rs/core/src/internal_storage.rs @@ -10,8 +10,8 @@ pub(crate) const INTERNAL_STORAGE_FILE: &str = "internal_storage.json"; pub struct InternalStorage { #[serde(skip)] storage_path: PathBuf, - #[serde(default)] - pub gpt_5_high_model_prompt_seen: bool, + #[serde(default, alias = "gpt_5_high_model_prompt_seen")] + pub swiftfox_model_prompt_seen: bool, } // TODO(jif) generalise all the file writers and build proper async channel inserters. diff --git a/codex-rs/tui/src/lib.rs b/codex-rs/tui/src/lib.rs index a9528dc8..8cac4d4b 100644 --- a/codex-rs/tui/src/lib.rs +++ b/codex-rs/tui/src/lib.rs @@ -369,9 +369,9 @@ async fn run_ratatui_app( &cli, &config, active_profile.as_deref(), - internal_storage.gpt_5_high_model_prompt_seen, + internal_storage.swiftfox_model_prompt_seen, ) { - internal_storage.gpt_5_high_model_prompt_seen = true; + internal_storage.swiftfox_model_prompt_seen = true; if let Err(e) = internal_storage.persist().await { error!("Failed to persist internal storage: {e:?}"); } @@ -513,7 +513,7 @@ fn should_show_model_rollout_prompt( cli: &Cli, config: &Config, active_profile: Option<&str>, - gpt_5_high_model_prompt_seen: bool, + swiftfox_model_prompt_seen: bool, ) -> bool { // TODO(jif) drop. let debug_high_enabled = std::env::var("DEBUG_HIGH") @@ -523,7 +523,7 @@ fn should_show_model_rollout_prompt( active_profile.is_none() && debug_high_enabled && cli.model.is_none() - && !gpt_5_high_model_prompt_seen + && !swiftfox_model_prompt_seen && config.model_provider.requires_openai_auth && !cli.oss }