Skip to content

Commit

Permalink
add editor
Browse files Browse the repository at this point in the history
  • Loading branch information
wendytang committed Feb 21, 2025
1 parent 01779b9 commit f5d5c7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/goose-cli/src/session/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl Session {

async fn process_agent_response(
&mut self,
mut editor: &mut Editor<(), rustyline::history::DefaultHistory>,
editor: &mut Editor<(), rustyline::history::DefaultHistory>,
goose_mode: Option<String>,
) -> Result<()> {
let mut stream = self.agent.reply(&self.messages, goose_mode).await?;
Expand All @@ -229,7 +229,7 @@ impl Session {
output::render_message(&Message::assistant().with_text(&prompt));

// Get confirmation from user
let confirmed = match input::get_input(&mut editor)? {
let confirmed = match input::get_input(editor)? {
input::InputResult::Message(content) => {
content.trim().to_lowercase().starts_with('y')
}
Expand Down

0 comments on commit f5d5c7e

Please sign in to comment.