File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
crates/chat-cli/src/cli/chat Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ impl ClearArgs {
4848 } ;
4949
5050 if [ "y" , "Y" ] . contains ( & user_input. as_str ( ) ) {
51- session. conversation . clear ( true ) ;
51+ session. conversation . clear ( ) ;
5252 if let Some ( cm) = session. conversation . context_manager . as_mut ( ) {
5353 cm. hook_executor . cache . clear ( ) ;
5454 }
Original file line number Diff line number Diff line change @@ -215,13 +215,11 @@ impl ConversationState {
215215 & self . history
216216 }
217217
218- /// Clears the conversation history and optionally the summary.
219- pub fn clear ( & mut self , preserve_summary : bool ) {
218+ /// Clears the conversation history and summary.
219+ pub fn clear ( & mut self ) {
220220 self . next_message = None ;
221221 self . history . clear ( ) ;
222- if !preserve_summary {
223- self . latest_summary = None ;
224- }
222+ self . latest_summary = None ;
225223 }
226224
227225 /// Check if currently in tangent mode
You can’t perform that action at this time.
0 commit comments