fix: Prevent infinite hangs in coder agent and implement timeouts for LLM API calls and interactive tools

This commit is contained in:
2026-08-14 15:22:25 -06:00
parent 2596194417
commit 644d899f78
8 changed files with 128 additions and 28 deletions
+2 -5
View File
@@ -430,10 +430,7 @@ mod tests {
assert!(error_message.contains("test_function_loop"));
}
fn new_handler() -> (
SseHandler,
tokio::sync::mpsc::UnboundedReceiver<SseEvent>,
) {
fn new_handler() -> (SseHandler, tokio::sync::mpsc::UnboundedReceiver<SseEvent>) {
let (sender, receiver) = tokio::sync::mpsc::unbounded_channel();
let abort_signal = crate::utils::create_abort_signal();
(SseHandler::new(sender, abort_signal), receiver)
@@ -517,4 +514,4 @@ mod tests {
{"key": "value3"}"#;
assert_json_stream!(input, output);
}
}
}