Skip to content

Commit 1a16cdf

Browse files
committed
fix: improve response timeout error message with user-friendly description
Replace generic 'Response timeout' message with a more descriptive error that explains the provider may be overloaded or there's an internet connection/proxy issue when communicating with the provider. Updated in: - streaming.rs (2 occurrences) - subagent.rs (1 occurrence)
1 parent d5b4ba6 commit 1a16cdf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/cortex-tui/src/runner/event_loop/streaming.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ impl EventLoop {
285285
Err(_) => {
286286
// Timeout
287287
let _ = tx
288-
.send(StreamEvent::Error("Response timeout".to_string()))
288+
.send(StreamEvent::Error("The provider appears to be overloaded or your internet connection/proxy is experiencing issues communicating with it.".to_string()))
289289
.await;
290290
break;
291291
}
@@ -833,7 +833,7 @@ impl EventLoop {
833833
}
834834
Err(_) => {
835835
let _ = tx
836-
.send(StreamEvent::Error("Response timeout".to_string()))
836+
.send(StreamEvent::Error("The provider appears to be overloaded or your internet connection/proxy is experiencing issues communicating with it.".to_string()))
837837
.await;
838838
break;
839839
}

src/cortex-tui/src/runner/event_loop/subagent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ impl EventLoop {
314314
.send(ToolEvent::Failed {
315315
id: id.clone(),
316316
name: "Task".to_string(),
317-
error: "Response timeout".to_string(),
317+
error: "The provider appears to be overloaded or your internet connection/proxy is experiencing issues communicating with it.".to_string(),
318318
duration: started_at.elapsed(),
319319
})
320320
.await

0 commit comments

Comments
 (0)