feat(tui/history): refresh popular commands lineup

This commit is contained in:
James Peter
2025-09-25 21:57:51 +10:00
parent 94a321509f
commit 03af55d1c0
2 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -2532,7 +2532,7 @@ impl ChatWidget<'_> {
let history_cells: Vec<Box<dyn HistoryCell>> = Vec::new();
// Insert later via history_push_top_next_req once struct is constructed
// Removed startup tip for /resume; /resume is now shown under "Popular commands".
// Removed the legacy startup tip for /resume.
// Initialize image protocol for rendering screenshots
+16 -15
View File
@@ -4473,13 +4473,6 @@ fn popular_commands_lines(_latest_version: Option<&str>) -> Vec<Line<'static>> {
Span::from(" - "),
Span::from(SlashCommand::Agents.description())
.style(Style::default().add_modifier(Modifier::DIM)),
Span::styled(" NEW", Style::default().fg(crate::colors::primary())),
]));
lines.push(Line::from(vec![
Span::styled("/pro", Style::default().fg(crate::colors::primary())),
Span::from(" - "),
Span::from(SlashCommand::Pro.description())
.style(Style::default().add_modifier(Modifier::DIM)),
]));
lines.push(Line::from(vec![
Span::styled("/model", Style::default().fg(crate::colors::primary())),
@@ -4503,12 +4496,6 @@ fn popular_commands_lines(_latest_version: Option<&str>) -> Vec<Line<'static>> {
Span::from(SlashCommand::Plan.description())
.style(Style::default().add_modifier(Modifier::DIM)),
]));
lines.push(Line::from(vec![
Span::styled("/solve", Style::default().fg(crate::colors::primary())),
Span::from(" - "),
Span::from(SlashCommand::Solve.description())
.style(Style::default().add_modifier(Modifier::DIM)),
]));
lines.push(Line::from(vec![
Span::styled("/code", Style::default().fg(crate::colors::primary())),
Span::from(" - "),
@@ -4520,13 +4507,27 @@ fn popular_commands_lines(_latest_version: Option<&str>) -> Vec<Line<'static>> {
Span::from(" - "),
Span::from(SlashCommand::Branch.description())
.style(Style::default().add_modifier(Modifier::DIM)),
]));
lines.push(Line::from(vec![
Span::styled("/limits", Style::default().fg(crate::colors::primary())),
Span::from(" - "),
Span::from(SlashCommand::Limits.description())
.style(Style::default().add_modifier(Modifier::DIM)),
Span::styled(" NEW", Style::default().fg(crate::colors::primary())),
]));
lines.push(Line::from(vec![
Span::styled("/resume", Style::default().fg(crate::colors::primary())),
Span::styled("/undo", Style::default().fg(crate::colors::primary())),
Span::from(" - "),
Span::from(SlashCommand::Resume.description())
Span::from(SlashCommand::Undo.description())
.style(Style::default().add_modifier(Modifier::DIM)),
Span::styled(" NEW", Style::default().fg(crate::colors::primary())),
]));
lines.push(Line::from(vec![
Span::styled("/review", Style::default().fg(crate::colors::primary())),
Span::from(" - "),
Span::from(SlashCommand::Review.description())
.style(Style::default().add_modifier(Modifier::DIM)),
Span::styled(" NEW", Style::default().fg(crate::colors::primary())),
]));
lines