Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions crates/goose-cli/src/session/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1085,8 +1085,12 @@ impl CliSession {
};
(formatted, subagent_id.map(str::to_string), notification_type.map(str::to_string))
} else if let Some(Value::String(output)) = o.get("output") {
// Fallback for other MCP notification types
(output.to_owned(), None, None)
// Extract type if present (e.g., "shell_output")
let notification_type = o.get("type")
.and_then(|v| v.as_str())
.map(str::to_string);

(output.to_owned(), None, notification_type)
} else if let Some(result) = format_task_execution_notification(data) {
result
} else {
Expand Down Expand Up @@ -1121,6 +1125,14 @@ impl CliSession {
print!("{}", formatted_message);
std::io::stdout().flush().unwrap();
}
} else if notification_type == "shell_output" {
// Hide spinner, print shell output, spinner will resume
if interactive {
let _ = progress_bars.hide();
}
if !is_json_mode {
println!("{}", formatted_message);
}
}
}
else if output::is_showing_thinking() {
Expand Down