Skip to content

Commit 0481db8

Browse files
committed
only shows mcp non-interactive msg in non-interactive mode
1 parent c4526cf commit 0481db8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/chat-cli/src/cli/chat/tool_manager.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -855,8 +855,7 @@ impl ToolManager {
855855
let still_loading = self.pending_clients.read().await.iter().cloned().collect::<Vec<_>>();
856856
let _ = tx.send(LoadingMsg::Terminate { still_loading }).await;
857857
}
858-
error!("## timeout: timed out");
859-
if !self.clients.is_empty() {
858+
if !self.clients.is_empty() && !self.is_interactive {
860859
let _ = queue!(
861860
output,
862861
style::Print(
@@ -867,14 +866,12 @@ impl ToolManager {
867866
}
868867
},
869868
_ = server_loading_fut => {
870-
error!("## timeout: server load finish");
871869
if let Some(tx) = tx {
872870
let still_loading = self.pending_clients.read().await.iter().cloned().collect::<Vec<_>>();
873871
let _ = tx.send(LoadingMsg::Terminate { still_loading }).await;
874872
}
875873
}
876874
_ = ctrl_c() => {
877-
error!("## timeout: ctrl c");
878875
if self.is_interactive {
879876
if let Some(tx) = tx {
880877
let still_loading = self.pending_clients.read().await.iter().cloned().collect::<Vec<_>>();

0 commit comments

Comments
 (0)