fix(test): stabilize cron output capture and clippy cleanups
This commit is contained in:
parent
483acccdb7
commit
50fd5b81e1
7 changed files with 20 additions and 19 deletions
|
|
@ -999,10 +999,10 @@ pub(crate) async fn run_tool_call_loop(
|
|||
let mut chunk = String::new();
|
||||
for word in display_text.split_inclusive(char::is_whitespace) {
|
||||
chunk.push_str(word);
|
||||
if chunk.len() >= STREAM_CHUNK_MIN_CHARS {
|
||||
if tx.send(std::mem::take(&mut chunk)).await.is_err() {
|
||||
break; // receiver dropped
|
||||
}
|
||||
if chunk.len() >= STREAM_CHUNK_MIN_CHARS
|
||||
&& tx.send(std::mem::take(&mut chunk)).await.is_err()
|
||||
{
|
||||
break; // receiver dropped
|
||||
}
|
||||
}
|
||||
if !chunk.is_empty() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue