From e443d0657a99773e21c383f5090b928b43601115 Mon Sep 17 00:00:00 2001 From: feehgrossi Date: Mon, 11 May 2026 20:30:16 -0300 Subject: [PATCH] fix(tui): align version component labels --- src/cortex-tui/src/commands/executor/general.rs | 2 +- src/cortex-tui/src/commands/executor/tests.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cortex-tui/src/commands/executor/general.rs b/src/cortex-tui/src/commands/executor/general.rs index e091f4f46..7d1750175 100644 --- a/src/cortex-tui/src/commands/executor/general.rs +++ b/src/cortex-tui/src/commands/executor/general.rs @@ -11,7 +11,7 @@ impl CommandExecutor { pub(super) fn cmd_version(&self) -> CommandResult { CommandResult::Message(format!( - "Cortex TUI v{}\ncortex-core v{}", + "Cortex TUI v{}\nCortex Core v{}", env!("CARGO_PKG_VERSION"), cortex_core::VERSION )) diff --git a/src/cortex-tui/src/commands/executor/tests.rs b/src/cortex-tui/src/commands/executor/tests.rs index 5e05ad996..c60116a1b 100644 --- a/src/cortex-tui/src/commands/executor/tests.rs +++ b/src/cortex-tui/src/commands/executor/tests.rs @@ -365,6 +365,8 @@ fn test_version() { let result = executor.execute_str("/version"); if let CommandResult::Message(msg) = result { assert!(msg.contains("Cortex TUI")); + assert!(msg.contains("Cortex Core")); + assert!(!msg.contains("cortex-core")); } else { panic!("Expected Message"); }