Skip to content

Commit 5c4fc65

Browse files
committed
fix: improve formatting of coaching tip messages and command list in app
1 parent 5ba71c5 commit 5c4fc65

File tree

1 file changed

+9
-3
lines changed
  • crates/agentic-tui/src/ui

1 file changed

+9
-3
lines changed

crates/agentic-tui/src/ui/app.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,10 @@ impl App {
12121212
// Unknown command - could show help message or ignore
12131213
self.coaching_tip = (
12141214
"Unknown Command".to_string(),
1215-
format!("Command '{}' not recognized. Try /settings or /quit", command),
1215+
format!(
1216+
"Command '{}' not recognized. Try /settings or /quit",
1217+
command
1218+
),
12161219
);
12171220
self.mode = AppMode::CoachingTip;
12181221
}
@@ -1232,10 +1235,13 @@ impl App {
12321235
fn get_filtered_slash_commands(&self) -> Vec<(String, String)> {
12331236
// Only 2 slash commands - About is main menu only
12341237
let available_commands = vec![
1235-
("/settings".to_string(), "Configure app settings".to_string()),
1238+
(
1239+
"/settings".to_string(),
1240+
"Configure app settings".to_string(),
1241+
),
12361242
("/quit".to_string(), "Exit the application".to_string()),
12371243
];
1238-
1244+
12391245
if self.edit_buffer == "/" {
12401246
// Show all commands when just "/" is typed
12411247
available_commands

0 commit comments

Comments
 (0)