From bb76d3ed69fee63128830557f887180bcea08d03 Mon Sep 17 00:00:00 2001 From: Felipe Coury Date: Sat, 30 May 2026 19:12:58 -0300 Subject: [PATCH] feat(tui): animate startup header mascot --- codex-rs/tui/src/chatwidget.rs | 70 ++++- codex-rs/tui/src/chatwidget/constructor.rs | 7 +- codex-rs/tui/src/chatwidget/session_flow.rs | 5 +- .../src/chatwidget/tests/status_and_layout.rs | 13 + codex-rs/tui/src/codex_logo.rs | 202 +++++++++++++ codex-rs/tui/src/codex_logo_frames.rs | 273 ++++++++++++++++++ codex-rs/tui/src/history_cell/base.rs | 12 + codex-rs/tui/src/history_cell/mod.rs | 3 + codex-rs/tui/src/history_cell/session.rs | 123 +++++++- ...s__session_header_indicates_yolo_mode.snap | 17 +- ...nfo_availability_nux_tooltip_snapshot.snap | 16 +- codex-rs/tui/src/history_cell/tests.rs | 42 +++ codex-rs/tui/src/lib.rs | 2 + ...ter_long_transcript_fresh_header_only.snap | 16 +- ...eader_fast_status_fast_capable_models.snap | 16 +- 15 files changed, 769 insertions(+), 48 deletions(-) create mode 100644 codex-rs/tui/src/codex_logo.rs create mode 100644 codex-rs/tui/src/codex_logo_frames.rs diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index c24d5dfcec..a23a0efbd3 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -56,6 +56,7 @@ use crate::bottom_pane::StatusSurfacePreviewData; use crate::bottom_pane::StatusSurfacePreviewItem; use crate::bottom_pane::TerminalTitleItem; use crate::bottom_pane::TerminalTitleSetupView; +use crate::codex_logo; use crate::diff_model::FileChange; use crate::git_action_directives::parse_assistant_markdown; use crate::legacy_core::DEFAULT_AGENTS_MD_FILENAME; @@ -632,6 +633,7 @@ pub(crate) struct ChatWidget { forked_from: Option, interrupted_turn_notice_mode: InterruptedTurnNoticeMode, frame_requester: FrameRequester, + startup_logo_animation: Option, // Whether to include the initial welcome banner on session configured show_welcome_banner: bool, // One-shot tooltip override for the primary startup session. @@ -1157,6 +1159,29 @@ impl ChatWidget { if let Some(pet) = self.ambient_pet.as_ref() { pet.schedule_next_frame(); } + if self.startup_logo_animation.is_some() { + if self + .transcript + .active_cell + .as_ref() + .and_then(|cell| cell.transcript_animation_tick()) + .is_some() + { + self.frame_requester + .schedule_frame_in(codex_logo::animation_frame_interval()); + } else { + self.startup_logo_animation = None; + if self + .transcript + .active_cell + .as_ref() + .is_some_and(|cell| cell.as_any().is::()) + { + self.flush_active_cell(); + } + self.request_redraw(); + } + } self.refresh_plan_mode_nudge(); self.refresh_goal_status_indicator_for_time_tick(); if self.terminal_title_shows_action_required() != self.last_terminal_title_requires_action { @@ -1170,7 +1195,8 @@ impl ChatWidget { } fn flush_active_cell(&mut self) { - if let Some(active) = self.transcript.active_cell.take() { + if let Some(mut active) = self.transcript.active_cell.take() { + active.finalize_for_history(); self.transcript.needs_final_message_separator = true; self.app_event_tx.send(AppEvent::InsertHistoryCell(active)); } @@ -1449,19 +1475,24 @@ impl ChatWidget { } /// Build a placeholder header cell while the session is configuring. - fn placeholder_session_header_cell(config: &Config) -> Box { + fn placeholder_session_header_cell( + config: &Config, + startup_logo_animation: Option, + ) -> Box { let placeholder_style = Style::default().add_modifier(Modifier::DIM | Modifier::ITALIC); - Box::new( - history_cell::SessionHeaderHistoryCell::new_with_style( - DEFAULT_MODEL_DISPLAY_NAME.to_string(), - placeholder_style, - /*reasoning_effort*/ None, - /*show_fast_status*/ false, - config.cwd.to_path_buf(), - CODEX_CLI_VERSION, - ) - .with_yolo_mode(history_cell::is_yolo_mode(config)), + let mut header = history_cell::SessionHeaderHistoryCell::new_with_style( + DEFAULT_MODEL_DISPLAY_NAME.to_string(), + placeholder_style, + /*reasoning_effort*/ None, + /*show_fast_status*/ false, + config.cwd.to_path_buf(), + CODEX_CLI_VERSION, ) + .with_yolo_mode(history_cell::is_yolo_mode(config)); + if let Some(animation) = startup_logo_animation { + header = header.with_startup_logo_animation(animation); + } + Box::new(header) } /// Merge the real session info cell with any placeholder header to avoid double boxes. @@ -1485,6 +1516,21 @@ impl ChatWidget { false }; + if self.startup_logo_animation.is_some() + && self + .transcript + .active_cell + .as_ref() + .and_then(|cell| cell.transcript_animation_tick()) + .is_some() + { + self.frame_requester + .schedule_frame_in(codex_logo::animation_frame_interval()); + self.request_redraw(); + return; + } + + self.startup_logo_animation = None; self.flush_active_cell(); if !merged_header && let Some(cell) = session_info_cell { diff --git a/codex-rs/tui/src/chatwidget/constructor.rs b/codex-rs/tui/src/chatwidget/constructor.rs index 623016f59f..09e41d3405 100644 --- a/codex-rs/tui/src/chatwidget/constructor.rs +++ b/codex-rs/tui/src/chatwidget/constructor.rs @@ -61,7 +61,11 @@ impl ChatWidget { settings: fallback_default, }; - let active_cell = Some(Self::placeholder_session_header_cell(&config)); + let startup_logo_animation = config.animations.then(codex_logo::startup_animation); + let active_cell = Some(Self::placeholder_session_header_cell( + &config, + startup_logo_animation, + )); let current_cwd = Some(config.cwd.to_path_buf()); let effective_service_tier = crate::service_tier_resolution::effective_service_tier( @@ -181,6 +185,7 @@ impl ChatWidget { side_placeholder_text: side_placeholder, forked_from: None, interrupted_turn_notice_mode: InterruptedTurnNoticeMode::Default, + startup_logo_animation, input_queue: InputQueueState::default(), chat_keymap, queued_message_edit_hint_binding, diff --git a/codex-rs/tui/src/chatwidget/session_flow.rs b/codex-rs/tui/src/chatwidget/session_flow.rs index 6eb5910afe..061ce897cb 100644 --- a/codex-rs/tui/src/chatwidget/session_flow.rs +++ b/codex-rs/tui/src/chatwidget/session_flow.rs @@ -111,7 +111,7 @@ impl ChatWidget { let startup_tooltip_override = self.startup_tooltip_override.take(); let show_fast_status = self .should_show_fast_status(&model_for_header, self.effective_service_tier.as_deref()); - let session_info_cell = history_cell::new_session_info( + let mut session_info_cell = history_cell::new_session_info( &self.config, &model_for_header, &session, @@ -120,6 +120,9 @@ impl ChatWidget { self.plan_type, show_fast_status, ); + if let Some(animation) = self.startup_logo_animation { + session_info_cell = session_info_cell.with_startup_logo_animation(animation); + } self.apply_session_info_cell(session_info_cell); } else if self .transcript diff --git a/codex-rs/tui/src/chatwidget/tests/status_and_layout.rs b/codex-rs/tui/src/chatwidget/tests/status_and_layout.rs index 45f9bbca53..b648697034 100644 --- a/codex-rs/tui/src/chatwidget/tests/status_and_layout.rs +++ b/codex-rs/tui/src/chatwidget/tests/status_and_layout.rs @@ -449,6 +449,19 @@ async fn configured_pet_load_is_deferred_until_after_construction() { ); } +#[tokio::test] +async fn placeholder_session_header_animates_while_session_is_configuring() { + let mut cfg = test_config().await; + cfg.animations = true; + + let cell = ChatWidget::placeholder_session_header_cell( + &cfg, + /*startup_logo_animation*/ Some(codex_logo::startup_animation()), + ); + + assert!(cell.transcript_animation_tick().is_some()); +} + #[tokio::test] async fn prefetch_rate_limits_is_gated_on_chatgpt_auth_provider() { let (mut chat, _rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await; diff --git a/codex-rs/tui/src/codex_logo.rs b/codex-rs/tui/src/codex_logo.rs new file mode 100644 index 0000000000..1e28bc6fa3 --- /dev/null +++ b/codex-rs/tui/src/codex_logo.rs @@ -0,0 +1,202 @@ +use crate::codex_logo_frames::BLINK_FRAMES; +use crate::codex_logo_frames::READ_BELOW_FRAMES; +use crate::codex_logo_frames::THINKING_FRAMES; +use crate::codex_logo_frames::WORKING_FRAMES; +use crate::color; +use rand::Rng; +use std::time::Duration; +use std::time::Instant; + +pub(crate) use crate::codex_logo_frames::HEIGHT; +pub(crate) use crate::codex_logo_frames::LogoFrame; +pub(crate) use crate::codex_logo_frames::WIDTH; + +pub(crate) const GAP_WIDTH: usize = 1; + +const ANIMATION_FRAME_MILLIS: u64 = 200; +const STARTUP_ANIMATION_LOOPS: u64 = 2; +const FRAME_COUNT: usize = 8; +const HIGHLIGHT_PERIOD_FRAMES: u64 = HEIGHT as u64 + 4; + +const BRIGHT_GRADIENT: [(u8, u8, u8); HEIGHT] = [ + (153, 161, 255), + (136, 157, 255), + (119, 148, 255), + (100, 130, 255), + (72, 92, 253), + (61, 78, 249), +]; + +const DARK_GRADIENT: [(u8, u8, u8); HEIGHT] = [ + (70, 84, 202), + (58, 96, 214), + (47, 108, 222), + (40, 101, 218), + (30, 72, 194), + (27, 57, 176), +]; + +#[derive(Clone, Copy, Debug, Eq, PartialEq)] +pub(crate) enum StartupAnimationKind { + ReadBelow, + Thinking, + Working, +} + +#[derive(Clone, Copy, Debug, Eq, PartialEq)] +pub(crate) struct StartupAnimation { + kind: StartupAnimationKind, + start: Instant, +} + +const STARTUP_ANIMATION_KINDS: [StartupAnimationKind; 3] = [ + StartupAnimationKind::Working, + StartupAnimationKind::Thinking, + StartupAnimationKind::ReadBelow, +]; + +pub(crate) const STATIC_FRAME: LogoFrame = BLINK_FRAMES[0]; + +pub(crate) fn startup_animation() -> StartupAnimation { + let mut rng = rand::rng(); + StartupAnimation { + kind: STARTUP_ANIMATION_KINDS[rng.random_range(0..STARTUP_ANIMATION_KINDS.len())], + start: Instant::now(), + } +} + +pub(crate) fn startup_animation_duration() -> Duration { + Duration::from_millis(ANIMATION_FRAME_MILLIS * FRAME_COUNT as u64 * STARTUP_ANIMATION_LOOPS) +} + +pub(crate) fn animation_frame_interval() -> Duration { + Duration::from_millis(ANIMATION_FRAME_MILLIS) +} + +pub(crate) fn animation_tick(animation: StartupAnimation) -> Option { + let elapsed = animation.start.elapsed(); + if elapsed >= startup_animation_duration() { + None + } else { + Some(elapsed.as_millis() as u64 / ANIMATION_FRAME_MILLIS) + } +} + +pub(crate) fn frame_for_tick(animation: StartupAnimation, tick: u64) -> &'static LogoFrame { + &animation_frames(animation.kind)[tick as usize % FRAME_COUNT] +} + +pub(crate) fn gradient_for_bg(bg: Option<(u8, u8, u8)>) -> [(u8, u8, u8); HEIGHT] { + if bg.is_some_and(color::is_light) { + DARK_GRADIENT + } else { + BRIGHT_GRADIENT + } +} + +pub(crate) fn gradient_for_animation_tick( + bg: Option<(u8, u8, u8)>, + tick: u64, +) -> [(u8, u8, u8); HEIGHT] { + let mut gradient = gradient_for_bg(bg); + let highlight_row = tick % HIGHLIGHT_PERIOD_FRAMES; + for (row, rgb) in gradient.iter_mut().enumerate() { + let distance = row.abs_diff(highlight_row as usize); + if distance <= 1 { + *rgb = brighten( + *rgb, + if distance == 0 { + /*amount*/ + 36 + } else { + /*amount*/ + 16 + }, + ); + } + } + gradient +} + +fn animation_frames(kind: StartupAnimationKind) -> &'static [LogoFrame; FRAME_COUNT] { + match kind { + StartupAnimationKind::ReadBelow => &READ_BELOW_FRAMES, + StartupAnimationKind::Thinking => &THINKING_FRAMES, + StartupAnimationKind::Working => &WORKING_FRAMES, + } +} + +fn brighten((r, g, b): (u8, u8, u8), amount: u8) -> (u8, u8, u8) { + ( + r.saturating_add(amount), + g.saturating_add(amount), + b.saturating_add(amount), + ) +} + +#[cfg(test)] +mod tests { + use super::*; + use unicode_width::UnicodeWidthStr; + + #[test] + fn frames_keep_14_by_6_geometry() { + for kind in STARTUP_ANIMATION_KINDS { + for frame in animation_frames(kind) { + assert_eq!(frame.len(), HEIGHT); + for line in frame { + assert_eq!(UnicodeWidthStr::width(*line), WIDTH); + } + } + } + for line in STATIC_FRAME { + assert_eq!(UnicodeWidthStr::width(line), WIDTH); + } + } + + #[test] + fn source_animations_have_distinct_frames() { + for kind in STARTUP_ANIMATION_KINDS { + let frames = animation_frames(kind); + assert!(frames.windows(2).any(|frames| frames[0] != frames[1])); + } + } + + #[test] + fn animation_wraps_and_settles() { + let animation = StartupAnimation { + kind: StartupAnimationKind::Working, + start: Instant::now(), + }; + assert_eq!( + frame_for_tick(animation, /*tick*/ 0), + frame_for_tick(animation, FRAME_COUNT as u64) + ); + let completed_animation = StartupAnimation { + kind: StartupAnimationKind::Working, + start: Instant::now() + .checked_sub(startup_animation_duration()) + .expect("duration should fit"), + }; + assert_eq!(animation_tick(completed_animation), None); + } + + #[test] + fn copied_animation_preserves_kind_and_origin() { + let animation = StartupAnimation { + kind: StartupAnimationKind::Thinking, + start: Instant::now(), + }; + let copied_animation = animation; + + assert_eq!(copied_animation, animation); + } + + #[test] + fn animation_tick_changes_gradient() { + assert_ne!( + gradient_for_animation_tick(/*bg*/ None, /*tick*/ 0), + gradient_for_animation_tick(/*bg*/ None, /*tick*/ 1) + ); + } +} diff --git a/codex-rs/tui/src/codex_logo_frames.rs b/codex-rs/tui/src/codex_logo_frames.rs new file mode 100644 index 0000000000..7cb7cde191 --- /dev/null +++ b/codex-rs/tui/src/codex_logo_frames.rs @@ -0,0 +1,273 @@ +// @generated by scripts/export-ansi-mascot-frames.mjs; do not edit. + +pub(crate) const HEIGHT: usize = 6; +pub(crate) const WIDTH: usize = 14; +pub(crate) type LogoFrame = [&'static str; HEIGHT]; + +pub(crate) const BLINK_FRAMES: [LogoFrame; 8] = [ + [ + " ⢀⣴⣶⣶⣶⣤⣤⣄⡀ ", + " ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣇⠙⣿⣿⣿⣿⣿⣿⣷⡀", + " ⢹⣿⣿⡏⣠⣿⣟⠛⠛⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⢀⣴⣶⣶⣶⣤⣤⣄⡀ ", + " ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣿⠈⣿⣿⣿⣿⣿⣿⣷⡀", + " ⢹⣿⣿⣿⢀⣿⣟⠛⠛⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⢀⣴⣶⣶⣶⣤⣤⣄⡀ ", + " ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣿⠁⣿⣿⣿⣿⣿⣿⣷⡀", + " ⢹⣿⣿⣿⡀⣿⣟⠛⠛⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⢀⣴⣶⣶⣶⣤⣤⣄⡀ ", + " ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣿⡇⣿⣿⣿⣿⣿⣿⣷⡀", + " ⢹⣿⣿⣿⡇⣿⣟⠛⠛⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⢀⣴⣶⣶⣶⣤⣤⣄⡀ ", + " ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣿⠃⣿⣿⣿⣿⣿⣿⣷⡀", + " ⢹⣿⣿⣿⡄⣿⣟⠛⠛⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⢀⣴⣶⣶⣶⣤⣤⣄⡀ ", + " ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣿⠈⣿⣿⣿⣿⣿⣿⣷⡀", + " ⢹⣿⣿⣿⢀⣿⣟⠛⠛⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⢀⣴⣶⣶⣶⣤⣤⣄⡀ ", + " ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣧⠙⣿⣿⣿⣿⣿⣿⣷⡀", + " ⢹⣿⣿⡟⣠⣿⣟⠛⠛⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⢀⣴⣶⣶⣶⣤⣤⣄⡀ ", + " ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣇⠙⣿⣿⣿⣿⣿⣿⣷⡀", + " ⢹⣿⣿⡏⣠⣿⣟⠛⠛⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], +]; + +pub(crate) const READ_BELOW_FRAMES: [LogoFrame; 8] = [ + [ + " ⢀⣴⣶⣶⣶⣤⣤⣄⡀ ", + " ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣿⡇⢸⣿ ⣿⣿⣿⣷⡀", + " ⢹⣿⣿⣿⣧⣼⣿⣴⣿⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⣠⣴⣶⣦⣄⣀⣀ ", + " ⢀⣤⣾⣿⣿⣿⣿⣿⣿⣿⣿⡄ ", + " ⣾⣿⣿⣿⡏⢹⣿⠉⣿⣿⣿⣧ ", + " ⢻⣿⣿⣿⣧⣼⣿⣤⣿⣿⣿⣿⡇", + " ⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟ ", + " ⠈⠛⠻⠿⢿⣿⣿⡿⠋ ", + ], + [ + " ⣠⣤⣶⣦⣄⣀⣀ ", + " ⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣆ ", + " ⣾⣿⣿⣿⣿⡟⢻⣿⠛⣿⣿⣿⡀", + " ⠹⣿⣿⣿⣿⣇⣸⣿⣀⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁", + " ⠈⠙⠻⠿⢿⣿⣿⡿⠟ ", + ], + [ + " ⣠⣤⣶⣦⣄⣀⣀ ", + " ⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣆ ", + " ⣾⣿⣿⣿⣿⡟⢻⣿⠛⣿⣿⣿⡀", + " ⠹⣿⣿⣿⣿⣇⣸⣿⣀⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁", + " ⠈⠙⠻⠿⢿⣿⣿⡿⠟ ", + ], + [ + " ⣠⣤⣶⣦⣄⣀⣀ ", + " ⢀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⡄ ", + " ⣾⣿⣿⣿⣿⠛⣿⡟⢻⣿⣿⣿⡀", + " ⠻⣿⣿⣿⣿⣀⣿⣇⣸⣿⣿⣿⡇", + " ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁", + " ⠈⠛⠻⠿⢿⣿⣿⡿⠟ ", + ], + [ + " ⣠⣴⣶⣤⣄⣀⣀ ", + " ⢀⣤⣾⣿⣿⣿⣿⣿⣿⣿⣷⡄ ", + " ⣿⣿⣿⡟⢻⣿⠛⣿⣿⣿⣿⣧ ", + " ⢻⣿⣿⣇⣸⣿⣀⣿⣿⣿⣿⣿⡇", + " ⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟ ", + " ⠈⠛⠻⠿⢿⣿⣿⡿⠋ ", + ], + [ + " ⣠⣴⣶⣤⣄⣀⣀ ", + " ⢀⣤⣾⣿⣿⣿⣿⣿⣿⣿⣷⡄ ", + " ⣿⣿⣿⡟⢻⣿⠛⣿⣿⣿⣿⣧ ", + " ⢻⣿⣿⣇⣸⣿⣀⣿⣿⣿⣿⣿⡇", + " ⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟ ", + " ⠈⠛⠻⠿⢿⣿⣿⡿⠋ ", + ], + [ + " ⣠⣴⣶⣦⣄⣀⣀ ", + " ⢀⣤⣾⣿⣿⣿⣿⣿⣿⣿⣷⡄ ", + " ⣾⣿⣿⣿⠋⣿⡏⢹⣿⣿⣿⣧ ", + " ⢻⣿⣿⣿⣄⣿⣧⣸⣿⣿⣿⣿⡇", + " ⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟ ", + " ⠈⠛⠛⠿⢿⣿⣿⠿⠋ ", + ], +]; + +pub(crate) const THINKING_FRAMES: [LogoFrame; 8] = [ + [ + " ⢀⣴⣾⣿⣷⣦⣤⣤⡀ ", + " ⢠⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣿⠿⣿⢿⡿⢿⣿⣿⣷⡀", + " ⢹⣿⣿⣿⣷⣿⣾⣷⣿⣿⣿⣿⠇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠙⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⣀⣠⣶⣿⣿⣷⣦⣀⡀ ", + " ⢠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦ ", + " ⢻⣿⣿⣿⠿⣿⢿⡿⣿⣿⣿⣿ ", + " ⢸⣿⣿⣿⣷⣿⣾⣷⣿⣿⣿⣿ ", + " ⠘⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠏ ", + " ⠉⠻⠿⠿⠿⠋⠁ ", + ], + [ + " ⢀⣠⣤⣴⣾⣿⣿⣶⣄ ", + " ⢠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣦ ", + " ⣸⣿⣿⣿⠿⡿⢿⡿⣿⣿⣿⣿⠆", + " ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟ ", + " ⠈⠻⢿⣿⣿⣿⣿⣿⣿⣿⣿⠃ ", + " ⠈⠛⠿⠿⠿⠛⠋⠉ ", + ], + [ + " ⣤⣶⣶⣶⣶⣿⣶⣦⡀ ", + " ⣼⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄ ", + " ⣾⣿⣿⣿⠿⣿⢿⡿⣿⣿⣿⣿⡆", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠃", + " ⠹⣿⣿⣿⣿⣿⣿⣿⣿⡿ ", + " ⠈⠛⠿⠟⠛⠛⠛⠋ ", + ], + [ + " ⢠⣶⣿⣿⣿⣶⣶⣤⣄ ", + " ⢠⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣿⠿⣿⢿⡿⢿⣿⣿⣷⡄", + " ⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇", + " ⢻⣿⣿⣿⣿⣿⣿⣿⣿⠟⠋ ", + " ⠈⠙⠛⠛⠿⠿⠟⠋ ", + ], + [ + " ⢀⣠⣤⣴⣾⣿⣿⣷⣄ ", + " ⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦ ", + " ⣰⣿⣿⣿⡿⣿⢿⡿⢿⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ", + " ⠈⠛⢿⣿⣿⣿⣿⣿⣿⣿⣿⠏ ", + " ⠙⠿⠿⠿⠛⠛⠉⠁ ", + ], + [ + " ⢀⣴⣾⣿⣿⣷⣤⣤⣀ ", + " ⢠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧ ", + " ⢿⣿⣿⣿⡿⣿⢿⡿⢿⣿⣿⣿ ", + " ⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇", + " ⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠋ ", + " ⠈⠉⠙⠿⠿⠿⠛⠁ ", + ], + [ + " ⢀⣴⣾⣿⣷⣦⣤⣤⡀ ", + " ⢠⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣆ ", + " ⣿⣿⣿⣿⠿⣿⢿⡿⢿⣿⣿⣿⡀", + " ⢹⣿⣿⣿⣿⣿⣾⣷⣿⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠙⠛⠻⠿⠿⠟⠋ ", + ], +]; + +pub(crate) const WORKING_FRAMES: [LogoFrame; 8] = [ + [ + " ⢀⣴⣶⣿⣶⣦⣤⣤⡀ ", + " ⢀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀", + " ⢹⣿⡟⣁⡙⣿⡏⣁⣙⣿⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⢀⣤⣶⣶⣶⣦⣤⣄⡀ ", + " ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣆ ", + " ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡀", + " ⢹⣿⣟⣁⡙⣿⡟⣁⡙⣿⣿⣿⡇", + " ⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⢀⣤⣶⣶⣶⣦⣤⣄⡀ ", + " ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣦ ", + " ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄", + " ⢹⣿⣟⣁⡉⣿⡟⢉⡙⣿⣿⣿⡇", + " ⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠛ ", + " ⠉⠙⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⢀⣤⣶⣶⣶⣦⣤⣄⡀ ", + " ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣆ ", + " ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡀", + " ⢹⣿⣿⡟⢉⡙⣿⡟⢉⠙⣿⣿⡇", + " ⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⢀⣴⣶⣿⣶⣦⣤⣤⡀ ", + " ⢀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀", + " ⢹⣿⣿⡟⢉⠙⣿⡟⢉⠙⣿⣿⡇", + " ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⢀⣴⣶⣷⣶⣤⣤⣤⡀ ", + " ⢠⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀", + " ⢹⣿⣿⡟⢉⡙⣿⡟⢉⡙⣿⣿⠇", + " ⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], + [ + " ⢀⣴⣶⣶⣶⣤⣤⣤⡀ ", + " ⣠⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀", + " ⢻⣿⣿⣁⣌⣻⣿⣡⣌⣻⣿⣿⡇", + " ⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠉ ", + ], + [ + " ⢀⣴⣶⣷⣶⣤⣤⣤⡀ ", + " ⢠⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆ ", + " ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀", + " ⢹⣿⣿⣁⣌⣻⣟⣡⣌⣻⣿⣿⠇", + " ⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠋ ", + " ⠉⠛⠛⠻⠿⠿⠟⠋ ", + ], +]; diff --git a/codex-rs/tui/src/history_cell/base.rs b/codex-rs/tui/src/history_cell/base.rs index e9ade84945..bf64a35b90 100644 --- a/codex-rs/tui/src/history_cell/base.rs +++ b/codex-rs/tui/src/history_cell/base.rs @@ -162,4 +162,16 @@ impl HistoryCell for CompositeHistoryCell { } out } + + fn transcript_animation_tick(&self) -> Option { + self.parts + .iter() + .find_map(|part| part.transcript_animation_tick()) + } + + fn finalize_for_history(&mut self) { + for part in &mut self.parts { + part.finalize_for_history(); + } + } } diff --git a/codex-rs/tui/src/history_cell/mod.rs b/codex-rs/tui/src/history_cell/mod.rs index 9cef3e4fa5..b09f66adec 100644 --- a/codex-rs/tui/src/history_cell/mod.rs +++ b/codex-rs/tui/src/history_cell/mod.rs @@ -295,6 +295,9 @@ pub(crate) trait HistoryCell: std::fmt::Debug + Send + Sync + Any { fn transcript_animation_tick(&self) -> Option { None } + + /// Settles transient visuals before an active cell is committed to transcript history. + fn finalize_for_history(&mut self) {} } impl Renderable for Box { diff --git a/codex-rs/tui/src/history_cell/session.rs b/codex-rs/tui/src/history_cell/session.rs index 23e8836454..973de150d1 100644 --- a/codex-rs/tui/src/history_cell/session.rs +++ b/codex-rs/tui/src/history_cell/session.rs @@ -1,8 +1,12 @@ //! Session headers, onboarding guidance, and transcript cards. use super::*; +use crate::codex_logo; +use crate::terminal_palette; -pub(crate) const SESSION_HEADER_MAX_INNER_WIDTH: usize = 56; // Just an eyeballed value +const SESSION_HEADER_TEXT_MAX_INNER_WIDTH: usize = 56; // Just an eyeballed value +pub(crate) const SESSION_HEADER_MAX_INNER_WIDTH: usize = + codex_logo::WIDTH + codex_logo::GAP_WIDTH + SESSION_HEADER_TEXT_MAX_INNER_WIDTH; pub(crate) fn card_inner_width(width: u16, max_inner_width: usize) -> Option { if width < 4 { @@ -119,6 +123,23 @@ impl HistoryCell for TooltipHistoryCell { #[derive(Debug)] pub struct SessionInfoCell(CompositeHistoryCell); +impl SessionInfoCell { + pub(crate) fn with_startup_logo_animation( + mut self, + animation: codex_logo::StartupAnimation, + ) -> Self { + if let Some(header) = self + .0 + .parts + .iter_mut() + .find_map(|part| part.as_any_mut().downcast_mut::()) + { + header.logo_animation = Some(animation); + } + self + } +} + impl HistoryCell for SessionInfoCell { fn display_lines(&self, width: u16) -> Vec> { self.0.display_lines(width) @@ -135,6 +156,14 @@ impl HistoryCell for SessionInfoCell { fn raw_lines(&self) -> Vec> { self.0.raw_lines() } + + fn transcript_animation_tick(&self) -> Option { + self.0.transcript_animation_tick() + } + + fn finalize_for_history(&mut self) { + self.0.finalize_for_history(); + } } pub(crate) fn new_session_info( @@ -246,6 +275,7 @@ pub(crate) struct SessionHeaderHistoryCell { show_fast_status: bool, directory: PathBuf, yolo_mode: bool, + logo_animation: Option, } impl SessionHeaderHistoryCell { @@ -282,6 +312,7 @@ impl SessionHeaderHistoryCell { show_fast_status, directory, yolo_mode: false, + logo_animation: None, } } @@ -290,6 +321,23 @@ impl SessionHeaderHistoryCell { self } + pub(crate) fn with_startup_logo_animation( + mut self, + animation: codex_logo::StartupAnimation, + ) -> Self { + self.logo_animation = Some(animation); + self + } + + fn finalize_logo_animation(&mut self) { + self.logo_animation = None; + } + + fn logo_animation_tick(&self) -> Option<(codex_logo::StartupAnimation, u64)> { + let animation = self.logo_animation?; + codex_logo::animation_tick(animation).map(|tick| (animation, tick)) + } + fn format_directory(&self, max_width: Option) -> String { Self::format_directory_inner(&self.directory, max_width) } @@ -334,6 +382,12 @@ impl HistoryCell for SessionHeaderHistoryCell { let Some(inner_width) = card_inner_width(width, SESSION_HEADER_MAX_INNER_WIDTH) else { return Vec::new(); }; + let show_logo = inner_width > codex_logo::WIDTH + codex_logo::GAP_WIDTH; + let text_width = if show_logo { + inner_width.saturating_sub(codex_logo::WIDTH + codex_logo::GAP_WIDTH) + } else { + inner_width + }; let make_row = |spans: Vec>| Line::from(spans); @@ -383,11 +437,11 @@ impl HistoryCell for SessionHeaderHistoryCell { let dir_label = format!("{DIR_LABEL: text_width) { + return with_border(text_lines); + } + + let logo_animation_tick = self.logo_animation_tick(); + let frame = logo_animation_tick + .map(|(animation, tick)| codex_logo::frame_for_tick(animation, tick)) + .unwrap_or(&codex_logo::STATIC_FRAME); + let terminal_bg = terminal_palette::default_bg(); + let gradient = logo_animation_tick + .map(|(_, tick)| codex_logo::gradient_for_animation_tick(terminal_bg, tick)) + .unwrap_or_else(|| codex_logo::gradient_for_bg(terminal_bg)); + let text_top_padding = (codex_logo::HEIGHT - text_lines.len()) / 2; + let mut lines = Vec::with_capacity(codex_logo::HEIGHT); + + let mut push_logo_row = |row: usize, logo_line: &str, style: Style| { + let mut spans = vec![ + Span::styled(padded_logo_line(logo_line), style), + Span::from(" ".repeat(codex_logo::GAP_WIDTH)), + ]; + if let Some(text_line) = row + .checked_sub(text_top_padding) + .and_then(|text_row| text_lines.get(text_row)) + { + spans.extend(text_line.spans.clone()); + } + lines.push(Line::from(spans)); + }; + + for (row, color) in gradient.into_iter().enumerate() { + push_logo_row( + row, + frame[row], + Style::default().fg(terminal_palette::best_color(color)), + ); + } + + with_border_with_inner_width(lines, inner_width) } fn raw_lines(&self) -> Vec> { @@ -425,4 +516,26 @@ impl HistoryCell for SessionHeaderHistoryCell { } lines } + + fn transcript_animation_tick(&self) -> Option { + self.logo_animation_tick().map(|(_, tick)| tick) + } + + fn finalize_for_history(&mut self) { + self.finalize_logo_animation(); + } +} + +fn line_width(line: &Line<'_>) -> usize { + line.iter() + .map(|span| UnicodeWidthStr::width(span.content.as_ref())) + .sum() +} + +fn padded_logo_line(line: &str) -> String { + let width = UnicodeWidthStr::width(line); + format!( + "{line}{}", + " ".repeat(codex_logo::WIDTH.saturating_sub(width)) + ) } diff --git a/codex-rs/tui/src/history_cell/snapshots/codex_tui__history_cell__tests__session_header_indicates_yolo_mode.snap b/codex-rs/tui/src/history_cell/snapshots/codex_tui__history_cell__tests__session_header_indicates_yolo_mode.snap index 04f64584f6..0fcd8225dd 100644 --- a/codex-rs/tui/src/history_cell/snapshots/codex_tui__history_cell__tests__session_header_indicates_yolo_mode.snap +++ b/codex-rs/tui/src/history_cell/snapshots/codex_tui__history_cell__tests__session_header_indicates_yolo_mode.snap @@ -1,11 +1,12 @@ --- -source: tui/src/history_cell.rs +source: tui/src/history_cell/tests.rs expression: rendered --- -╭───────────────────────────────────────╮ -│ >_ OpenAI Codex (vtest) │ -│ │ -│ model: gpt-5 /model to change │ -│ directory: /tmp/project │ -│ permissions: YOLO mode │ -╰───────────────────────────────────────╯ +╭─────────────────────────────────────────────────────────────────────────╮ +│ ⢀⣴⣶⣶⣶⣤⣤⣄⡀ >_ OpenAI Codex (vtest) │ +│ ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡆ │ +│ ⣿⣿⣿⣇⠙⣿⣿⣿⣿⣿⣿⣷⡀ model: gpt-5 /model to change │ +│ ⢹⣿⣿⡏⣠⣿⣟⠛⠛⣿⣿⣿⡇ directory: /tmp/project │ +│ ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ permissions: YOLO mode │ +│ ⠉⠛⠛⠻⠿⠿⠟⠋ │ +╰─────────────────────────────────────────────────────────────────────────╯ diff --git a/codex-rs/tui/src/history_cell/snapshots/codex_tui__history_cell__tests__session_info_availability_nux_tooltip_snapshot.snap b/codex-rs/tui/src/history_cell/snapshots/codex_tui__history_cell__tests__session_info_availability_nux_tooltip_snapshot.snap index ad0fc4be1c..a78f8c39a1 100644 --- a/codex-rs/tui/src/history_cell/snapshots/codex_tui__history_cell__tests__session_info_availability_nux_tooltip_snapshot.snap +++ b/codex-rs/tui/src/history_cell/snapshots/codex_tui__history_cell__tests__session_info_availability_nux_tooltip_snapshot.snap @@ -1,12 +1,14 @@ --- -source: tui/src/history_cell.rs +source: tui/src/history_cell/tests.rs expression: rendered --- -╭─────────────────────────────────────╮ -│ >_ OpenAI Codex (v0.0.0) │ -│ │ -│ model: gpt-5 /model to change │ -│ directory: /tmp/project │ -╰─────────────────────────────────────╯ +╭─────────────────────────────────────────────────────────────────────────╮ +│ ⢀⣴⣶⣶⣶⣤⣤⣄⡀ │ +│ ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡆ >_ OpenAI Codex (v0.0.0) │ +│ ⣿⣿⣿⣇⠙⣿⣿⣿⣿⣿⣿⣷⡀ │ +│ ⢹⣿⣿⡏⣠⣿⣟⠛⠛⣿⣿⣿⡇ model: gpt-5 /model to change │ +│ ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ directory: /tmp/project │ +│ ⠉⠛⠛⠻⠿⠿⠟⠋ │ +╰─────────────────────────────────────────────────────────────────────────╯ Tip: Model just became available diff --git a/codex-rs/tui/src/history_cell/tests.rs b/codex-rs/tui/src/history_cell/tests.rs index 63a04d19d4..f95da01286 100644 --- a/codex-rs/tui/src/history_cell/tests.rs +++ b/codex-rs/tui/src/history_cell/tests.rs @@ -1,6 +1,7 @@ //! Coverage for history-cell rendering, wrapping, and transcript behavior. use super::*; +use crate::codex_logo; use crate::exec_cell::CommandOutput; use crate::exec_cell::ExecCall; use crate::exec_cell::ExecCell; @@ -1473,6 +1474,7 @@ fn session_header_includes_reasoning_level_when_present() { assert!(model_line.contains("gpt-4o high fast")); assert!(model_line.contains("/model to change")); + assert!(lines.iter().any(|line| line.contains("⣿"))); } #[test] @@ -1495,6 +1497,46 @@ fn session_header_hides_fast_status_when_disabled() { assert!(!model_line.contains("fast")); } +#[test] +fn session_header_hides_logo_when_text_would_not_fit() { + let cell = SessionHeaderHistoryCell::new( + "gpt-4o".to_string(), + Some(ReasoningEffortConfig::High), + /*show_fast_status*/ true, + std::env::temp_dir(), + "test", + ); + + let rendered = render_lines(&cell.display_lines(/*width*/ 48)).join("\n"); + + assert!(rendered.contains("OpenAI Codex")); + assert!(!rendered.contains("⣿")); +} + +#[tokio::test] +async fn session_info_logo_animation_is_independent_from_welcome_banner() { + let mut config = test_config().await; + config.animations = true; + let mut cell = new_session_info( + &config, + "gpt-5", + &session_configured_event("gpt-5"), + /*is_first_event*/ false, + /*tooltip_override*/ None, + /*auth_plan*/ None, + /*show_fast_status*/ false, + ) + .with_startup_logo_animation(codex_logo::startup_animation()); + + assert!(cell.transcript_animation_tick().is_some()); + let rendered = render_transcript(&cell).join("\n"); + assert!(rendered.contains("⣿")); + assert!(!rendered.contains("To get started")); + + cell.finalize_for_history(); + assert!(cell.transcript_animation_tick().is_none()); +} + #[test] #[cfg_attr( target_os = "windows", diff --git a/codex-rs/tui/src/lib.rs b/codex-rs/tui/src/lib.rs index 508977fb53..f80764c8f0 100644 --- a/codex-rs/tui/src/lib.rs +++ b/codex-rs/tui/src/lib.rs @@ -116,6 +116,8 @@ mod chatwidget; mod cli; mod clipboard_copy; mod clipboard_paste; +mod codex_logo; +mod codex_logo_frames; mod collaboration_modes; mod color; mod config_update; diff --git a/codex-rs/tui/src/snapshots/codex_tui__app__tests__clear_ui_after_long_transcript_fresh_header_only.snap b/codex-rs/tui/src/snapshots/codex_tui__app__tests__clear_ui_after_long_transcript_fresh_header_only.snap index 98d6015064..2068d09bf5 100644 --- a/codex-rs/tui/src/snapshots/codex_tui__app__tests__clear_ui_after_long_transcript_fresh_header_only.snap +++ b/codex-rs/tui/src/snapshots/codex_tui__app__tests__clear_ui_after_long_transcript_fresh_header_only.snap @@ -1,10 +1,12 @@ --- -source: tui/src/app.rs +source: tui/src/app/tests.rs expression: rendered --- -╭─────────────────────────────────────────────╮ -│ >_ OpenAI Codex (v) │ -│ │ -│ model: gpt-test high /model to change │ -│ directory: /tmp/project │ -╰─────────────────────────────────────────────╯ +╭─────────────────────────────────────────────────────────────────────────╮ +│ ⢀⣴⣶⣶⣶⣤⣤⣄⡀ │ +│ ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡆ >_ OpenAI Codex (v) │ +│ ⣿⣿⣿⣇⠙⣿⣿⣿⣿⣿⣿⣷⡀ │ +│ ⢹⣿⣿⡏⣠⣿⣟⠛⠛⣿⣿⣿⡇ model: gpt-test high /model to change │ +│ ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ directory: /tmp/project │ +│ ⠉⠛⠛⠻⠿⠿⠟⠋ │ +╰─────────────────────────────────────────────────────────────────────────╯ diff --git a/codex-rs/tui/src/snapshots/codex_tui__app__tests__clear_ui_header_fast_status_fast_capable_models.snap b/codex-rs/tui/src/snapshots/codex_tui__app__tests__clear_ui_header_fast_status_fast_capable_models.snap index 08afd027ac..2c6686af11 100644 --- a/codex-rs/tui/src/snapshots/codex_tui__app__tests__clear_ui_header_fast_status_fast_capable_models.snap +++ b/codex-rs/tui/src/snapshots/codex_tui__app__tests__clear_ui_header_fast_status_fast_capable_models.snap @@ -1,10 +1,12 @@ --- -source: tui/src/app.rs +source: tui/src/app/tests.rs expression: rendered --- -╭────────────────────────────────────────────────────╮ -│ >_ OpenAI Codex (v) │ -│ │ -│ model: gpt-5.4 xhigh fast /model to change │ -│ directory: /tmp/project │ -╰────────────────────────────────────────────────────╯ +╭─────────────────────────────────────────────────────────────────────────╮ +│ ⢀⣴⣶⣶⣶⣤⣤⣄⡀ │ +│ ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡆ >_ OpenAI Codex (v) │ +│ ⣿⣿⣿⣇⠙⣿⣿⣿⣿⣿⣿⣷⡀ │ +│ ⢹⣿⣿⡏⣠⣿⣟⠛⠛⣿⣿⣿⡇ model: gpt-5.4 xhigh fast /model to change │ +│ ⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋ directory: /tmp/project │ +│ ⠉⠛⠛⠻⠿⠿⠟⠋ │ +╰─────────────────────────────────────────────────────────────────────────╯