Skip to content

Commit

Permalink
fixes: #987 by ignoring when user submits empty message (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
laanak08 authored Feb 10, 2025
1 parent 566706f commit fe06d93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/goose-cli/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ impl<'a> Session<'a> {
match input.input_type {
InputType::Message => {
if let Some(content) = &input.content {
if content.is_empty() {
continue;
}
self.messages.push(Message::user().with_text(content));
persist_messages(&self.session_file, &self.messages)?;
}
Expand Down

0 comments on commit fe06d93

Please sign in to comment.