fix: When parallel agents run, only write to stdout from the parent and only display the parent's throbber

This commit is contained in:
2026-02-18 09:59:24 -07:00
parent 313058e70a
commit 69ad584137
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -411,9 +411,11 @@ pub async fn call_chat_completions(
client: &dyn Client,
abort_signal: AbortSignal,
) -> Result<(String, Vec<ToolResult>)> {
let is_child_agent = client.global_config().read().current_depth > 0;
let spinner_message = if is_child_agent { "" } else { "Generating" };
let ret = abortable_run_with_spinner(
client.chat_completions(input.clone()),
"Generating",
spinner_message,
abort_signal,
)
.await;