From 0533f96c447b55b0eea414072db1436c42fba85e Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Mon, 24 Aug 2026 00:43:40 +0000 Subject: [PATCH] Label Business Pro Lite plans as Business Premium (#40301) ## What changed - Show `SelfServeBusinessProLite` as `Business Premium` in TUI account displays instead of grouping it under `Business`. - Update the display-name and app-server session tests for the new label. GitOrigin-RevId: aac5c7abe9543f5d49f4e9dc9cbe20e7e3b41e5b --- codex-rs/tui/src/app_server_session.rs | 2 +- codex-rs/tui/src/status/helpers.rs | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/codex-rs/tui/src/app_server_session.rs b/codex-rs/tui/src/app_server_session.rs index 0116846832..1871427cbe 100644 --- a/codex-rs/tui/src/app_server_session.rs +++ b/codex-rs/tui/src/app_server_session.rs @@ -3712,7 +3712,7 @@ mod tests { Some(StatusAccountDisplay::ChatGpt { email: None, plan: Some(ref plan), - }) if plan == "Business" + }) if plan == "Business Premium" )); } } diff --git a/codex-rs/tui/src/status/helpers.rs b/codex-rs/tui/src/status/helpers.rs index 47a4702d18..c0a6e18d12 100644 --- a/codex-rs/tui/src/status/helpers.rs +++ b/codex-rs/tui/src/status/helpers.rs @@ -99,6 +99,8 @@ pub(crate) fn compose_account_display( pub(crate) fn plan_type_display_name(plan_type: PlanType) -> String { if plan_type == PlanType::EnterpriseCbpAutomation { "Enterprise (Automation)".to_string() + } else if plan_type == PlanType::SelfServeBusinessProLite { + "Business Premium".to_string() } else if plan_type.is_team_like() { "Business".to_string() } else if plan_type.is_business_like() { @@ -225,7 +227,6 @@ mod tests { (PlanType::Pro, "Pro"), (PlanType::ProLite, "Pro Lite"), (PlanType::Team, "Business"), - (PlanType::SelfServeBusinessProLite, "Business"), (PlanType::SelfServeBusinessUsageBased, "Business"), (PlanType::Business, "Enterprise"), (PlanType::EnterpriseCbpAutomation, "Enterprise (Automation)"), @@ -238,6 +239,10 @@ mod tests { for (plan_type, expected) in cases { assert_eq!(plan_type_display_name(plan_type), expected); } + insta::assert_snapshot!( + plan_type_display_name(PlanType::SelfServeBusinessProLite), + @"Business Premium" + ); insta::assert_snapshot!( "education_plan_display_names", [PlanType::Edu, PlanType::EduPlus, PlanType::EduPro]