chore: rename

This commit is contained in:
Thibault Sottiaux
2025-09-12 23:17:41 -07:00
parent a77364bbaa
commit 14ab1063a7
2 changed files with 6 additions and 6 deletions

View File

@@ -10,8 +10,8 @@ pub(crate) const INTERNAL_STORAGE_FILE: &str = "internal_storage.json";
pub struct InternalStorage { pub struct InternalStorage {
#[serde(skip)] #[serde(skip)]
storage_path: PathBuf, storage_path: PathBuf,
#[serde(default)] #[serde(default, alias = "gpt_5_high_model_prompt_seen")]
pub gpt_5_high_model_prompt_seen: bool, pub swiftfox_model_prompt_seen: bool,
} }
// TODO(jif) generalise all the file writers and build proper async channel inserters. // TODO(jif) generalise all the file writers and build proper async channel inserters.

View File

@@ -369,9 +369,9 @@ async fn run_ratatui_app(
&cli, &cli,
&config, &config,
active_profile.as_deref(), 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 { if let Err(e) = internal_storage.persist().await {
error!("Failed to persist internal storage: {e:?}"); error!("Failed to persist internal storage: {e:?}");
} }
@@ -513,7 +513,7 @@ fn should_show_model_rollout_prompt(
cli: &Cli, cli: &Cli,
config: &Config, config: &Config,
active_profile: Option<&str>, active_profile: Option<&str>,
gpt_5_high_model_prompt_seen: bool, swiftfox_model_prompt_seen: bool,
) -> bool { ) -> bool {
// TODO(jif) drop. // TODO(jif) drop.
let debug_high_enabled = std::env::var("DEBUG_HIGH") let debug_high_enabled = std::env::var("DEBUG_HIGH")
@@ -523,7 +523,7 @@ fn should_show_model_rollout_prompt(
active_profile.is_none() active_profile.is_none()
&& debug_high_enabled && debug_high_enabled
&& cli.model.is_none() && cli.model.is_none()
&& !gpt_5_high_model_prompt_seen && !swiftfox_model_prompt_seen
&& config.model_provider.requires_openai_auth && config.model_provider.requires_openai_auth
&& !cli.oss && !cli.oss
} }