From 9d56ec21a722dc1fa59f5dc67596121823bd8ad2 Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 29 May 2026 19:26:39 -0600 Subject: [PATCH] Remove GPT-5.2 Codex pricing warning --- src/analyzers/codex_cli.rs | 11 +---------- src/utils.rs | 11 ----------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/analyzers/codex_cli.rs b/src/analyzers/codex_cli.rs index 060f50c..26e27d7 100644 --- a/src/analyzers/codex_cli.rs +++ b/src/analyzers/codex_cli.rs @@ -13,7 +13,7 @@ use crate::analyzer::{Analyzer, DataSource}; use crate::contribution_cache::ContributionStrategy; use crate::models::calculate_total_cost; use crate::types::{Application, ConversationMessage, MessageRole, Stats}; -use crate::utils::{deserialize_utc_timestamp, hash_text, warn_once, warn_once_yellow}; +use crate::utils::{deserialize_utc_timestamp, hash_text, warn_once}; const DEFAULT_FALLBACK_MODEL: &str = "gpt-5"; @@ -188,15 +188,6 @@ struct SessionModel { impl SessionModel { fn explicit(name: String) -> Self { - // Warn users who may have uploaded gpt-5.2-codex data before pricing was added - if name == "gpt-5.2-codex" { - warn_once_yellow( - "gpt-5.2-codex pricing was added recently. Any data uploaded to \ - Splitrail Cloud with this model will show costs as $0. To fix: go to \ - Settings on splitrail.dev, delete your Codex CLI data, then re-upload." - .to_string(), - ); - } Self { name } } diff --git a/src/utils.rs b/src/utils.rs index 08e2756..eda9d59 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -22,17 +22,6 @@ pub fn warn_once(message: impl Into) { } } -/// Like warn_once, but prints in yellow with a warning emoji -pub fn warn_once_yellow(message: impl Into) { - let message = message.into(); - let cache = WARNED_MESSAGES.get_or_init(|| Mutex::new(HashSet::new())); - - if cache.lock().insert(message.clone()) { - // ANSI escape codes: \x1b[33m = yellow, \x1b[0m = reset - eprintln!("\x1b[33m⚠️ {message}\x1b[0m"); - } -} - #[derive(Clone)] pub struct NumberFormatOptions { pub use_comma: bool,