Skip to content

Commit

Permalink
busy prompt changes text for each goose streamed response
Browse files Browse the repository at this point in the history
  • Loading branch information
jsibbison-square committed Nov 25, 2024
1 parent 66a4deb commit 21a8cee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/goose-cli/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ impl<'a> Session<'a> {
Some(Ok(message)) => {
self.messages.push(message.clone());
persist_messages(&self.session_file, &self.messages).unwrap_or_else(|e| eprintln!("Failed to persist messages: {}", e));
self.prompt.hide_busy();
self.prompt.render(Box::new(message.clone()));
self.prompt.show_busy();
}
Some(Err(e)) => {
// TODO: Handle error display through prompt
Expand Down

0 comments on commit 21a8cee

Please sign in to comment.