feat: enhance responsiveness by implementing abort checks in streaming API calls

This commit is contained in:
asepharyana
2026-07-13 14:39:39 +07:00
parent 8388a83af0
commit 0d6f558b2b
3 changed files with 73 additions and 38 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ fn spawn_single_agent(
let _ = done_tx.send(run_subagent(&bg_ctx, &bg_tx));
});
let poll_interval = Duration::from_millis(500);
let poll_interval = Duration::from_millis(200);
let result = if let Some(timeout) = timeout_ms {
let deadline = Duration::from_millis(timeout);
let mut elapsed = Duration::ZERO;