replace /prompts with a rotating placeholder (#2314)
This commit is contained in:
@@ -170,7 +170,6 @@ pub(crate) fn new_session_info(
|
||||
Line::from(format!(" /init - {}", SlashCommand::Init.description()).dim()),
|
||||
Line::from(format!(" /status - {}", SlashCommand::Status.description()).dim()),
|
||||
Line::from(format!(" /diff - {}", SlashCommand::Diff.description()).dim()),
|
||||
Line::from(format!(" /prompts - {}", SlashCommand::Prompts.description()).dim()),
|
||||
Line::from("".dim()),
|
||||
];
|
||||
PlainHistoryCell { lines }
|
||||
@@ -635,21 +634,6 @@ pub(crate) fn new_status_output(
|
||||
PlainHistoryCell { lines }
|
||||
}
|
||||
|
||||
pub(crate) fn new_prompts_output() -> PlainHistoryCell {
|
||||
let lines: Vec<Line<'static>> = vec![
|
||||
Line::from("/prompts".magenta()),
|
||||
Line::from(""),
|
||||
Line::from(" 1. Explain this codebase"),
|
||||
Line::from(" 2. Summarize recent commits"),
|
||||
Line::from(" 3. Implement {feature}"),
|
||||
Line::from(" 4. Find and fix a bug in @filename"),
|
||||
Line::from(" 5. Write tests for @filename"),
|
||||
Line::from(" 6. Improve documentation in @filename"),
|
||||
Line::from(""),
|
||||
];
|
||||
PlainHistoryCell { lines }
|
||||
}
|
||||
|
||||
pub(crate) fn new_error_event(message: String) -> PlainHistoryCell {
|
||||
let lines: Vec<Line<'static>> = vec![vec!["🖐 ".red().bold(), message.into()].into(), "".into()];
|
||||
PlainHistoryCell { lines }
|
||||
|
||||
Reference in New Issue
Block a user