Skip to content

Commit cc1fa65

Browse files
fix: build errors (#2363)
1 parent 398a011 commit cc1fa65

File tree

1 file changed

+4
-7
lines changed
  • crates/chat-cli/src/cli/chat

1 file changed

+4
-7
lines changed

crates/chat-cli/src/cli/chat/mod.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ impl ChatSession {
687687
},
688688
ChatState::RetryModelOverload => tokio::select! {
689689
res = self.retry_model_overload(os) => res,
690-
Ok(_) = ctrl_c_stream => {
690+
Ok(_) = ctrl_c_stream.recv() => {
691691
Err(ChatError::Interrupted { tool_uses: None })
692692
}
693693
},
@@ -2330,17 +2330,14 @@ impl ChatSession {
23302330
Err(err) => return Err(err),
23312331
}
23322332

2333-
let conv_state = self
2334-
.conversation
2335-
.as_sendable_conversation_state(os, &mut self.stderr, true)
2336-
.await?;
2337-
23382333
if self.interactive {
23392334
self.spinner = Some(Spinner::new(Spinners::Dots, "Thinking...".to_owned()));
23402335
}
23412336

23422337
Ok(ChatState::HandleResponseStream(
2343-
os.client.send_message(conv_state).await?,
2338+
self.conversation
2339+
.as_sendable_conversation_state(os, &mut self.stderr, true)
2340+
.await?,
23442341
))
23452342
}
23462343

0 commit comments

Comments
 (0)