File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
crates/chat-cli/src/cli/chat Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -687,7 +687,7 @@ impl ChatSession {
687
687
} ,
688
688
ChatState :: RetryModelOverload => tokio:: select! {
689
689
res = self . retry_model_overload( os) => res,
690
- Ok ( _) = ctrl_c_stream => {
690
+ Ok ( _) = ctrl_c_stream. recv ( ) => {
691
691
Err ( ChatError :: Interrupted { tool_uses: None } )
692
692
}
693
693
} ,
@@ -2330,17 +2330,14 @@ impl ChatSession {
2330
2330
Err ( err) => return Err ( err) ,
2331
2331
}
2332
2332
2333
- let conv_state = self
2334
- . conversation
2335
- . as_sendable_conversation_state ( os, & mut self . stderr , true )
2336
- . await ?;
2337
-
2338
2333
if self . interactive {
2339
2334
self . spinner = Some ( Spinner :: new ( Spinners :: Dots , "Thinking..." . to_owned ( ) ) ) ;
2340
2335
}
2341
2336
2342
2337
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 ?,
2344
2341
) )
2345
2342
}
2346
2343
You can’t perform that action at this time.
0 commit comments