We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02c3ffe commit 6665ff4Copy full SHA for 6665ff4
crates/q_cli/src/cli/chat/mod.rs
@@ -417,7 +417,13 @@ where
417
}
418
self.prompt_user(tool_uses, skip_printing_tools).await
419
},
420
- ChatState::HandleInput { input, tool_uses } => self.handle_input(input, tool_uses).await,
+ ChatState::HandleInput { input, tool_uses } => {
421
+ let tool_uses_clone = tool_uses.clone().unwrap();
422
+ tokio::select! {
423
+ res = self.handle_input(input, tool_uses) => res,
424
+ Some(_) = ctrl_c_stream.recv() => Err(ChatError::Interrupted { tool_uses: Some(tool_uses_clone) })
425
+ }
426
+ },
427
ChatState::ExecuteTools(tool_uses) => {
428
let tool_uses_clone = tool_uses.clone();
429
tokio::select! {
0 commit comments