Add /compact command to Rust CLI

This commit is contained in:
aibrahim-oai
2025-07-09 13:37:15 -07:00
parent 4a15ebc1ca
commit 39401b49cf
6 changed files with 118 additions and 0 deletions

View File

@@ -277,6 +277,11 @@ impl<'a> App<'a> {
widget.add_diff_output(text);
}
}
SlashCommand::Compact => {
if let AppState::Chat { widget } = &mut self.app_state {
widget.compact().await;
}
}
},
AppEvent::StartFileSearch(query) => {
self.file_search.on_user_query(query);