mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-01 04:34:21 +01:00
feat(cli): Clear persisted session file with /clear command (#3145)
This commit is contained in:
@@ -627,6 +627,10 @@ impl Session {
|
||||
&Message::assistant().with_text("Chat context cleared."),
|
||||
self.debug,
|
||||
);
|
||||
if self.session_file.exists() {
|
||||
std::fs::remove_file(&self.session_file)?;
|
||||
std::fs::File::create(&self.session_file)?;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
input::InputResult::PromptCommand(opts) => {
|
||||
|
||||
Reference in New Issue
Block a user