Skip to content

Commit 10da3f6

Browse files
committed
fix: update timeout to align with server
1 parent bbaff63 commit 10da3f6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

crates/fig_api_client/src/clients/shared.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ use crate::{
1515
Error,
1616
};
1717

18-
// TODO(bskiser): Update timeout
19-
const DEFAULT_TIMEOUT_DURATION: Duration = Duration::from_millis(60100);
18+
// TODO(bskiser): confirm timeout is updated to an appropriate value?
19+
const DEFAULT_TIMEOUT_DURATION: Duration = Duration::from_secs(60 * 5);
2020

2121
pub(crate) fn timeout_config() -> TimeoutConfig {
2222
let timeout = fig_settings::settings::get_int("api.timeout")
@@ -35,7 +35,7 @@ pub(crate) fn timeout_config() -> TimeoutConfig {
3535

3636
pub(crate) fn stalled_stream_protection_config() -> StalledStreamProtectionConfig {
3737
StalledStreamProtectionConfig::enabled()
38-
.grace_period(Duration::from_secs(100))
38+
.grace_period(Duration::from_secs(60 * 5))
3939
.build()
4040
}
4141

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ Hi, I'm <g>Amazon Q</g>. Ask me anything.
444444
style::SetForegroundColor(Color::Blue),
445445
style::Print(format!("\n{name}: ")),
446446
style::SetForegroundColor(Color::Reset),
447+
cursor::Hide,
447448
)?;
448449
self.spinner = Some(Spinner::new(Spinners::Dots, "Thinking...".to_string()));
449450
}

0 commit comments

Comments
 (0)