Skip to content

Commit f768fb4

Browse files
authored
Fix: reuse of ctrl c stream causing sigint to not be caught (#133)
1 parent 1aeb755 commit f768fb4

File tree

1 file changed

+1
-1
lines changed
  • crates/chat-cli/src/cli/chat

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3425,7 +3425,7 @@ impl ChatContext {
34253425

34263426
// TODO: We should buffer output based on how much we have to parse, not as a constant
34273427
// Do not remove unless you are nabochay :)
3428-
std::thread::sleep(Duration::from_millis(8));
3428+
tokio::time::sleep(Duration::from_millis(8)).await;
34293429
}
34303430

34313431
// Set spinner after showing all of the assistant text content so far.

0 commit comments

Comments
 (0)