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
9 changes: 8 additions & 1 deletion crates/goose-cli/src/session/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,14 @@ fn split_tool_name(tool_name: &str) -> (String, String) {
.split_first()
.map(|(_, s)| s.iter().rev().copied().collect::<Vec<_>>().join("__"))
.unwrap_or_default();
(tool.to_string(), extension)
(tool.to_string(), extension_display_name(&extension))
}

fn extension_display_name(name: &str) -> String {
match name {
"code_execution" => "Code Mode".to_string(),
_ => name.to_string(),
}
}
Comment on lines +763 to 767
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using the PLATFORM_EXTENSIONS map from goose::agents::platform_extensions to look up display names dynamically instead of hardcoding them. This would ensure the CLI always uses the same display names as defined in the source of truth and would automatically include all extensions. For example: goose::agents::platform_extensions::PLATFORM_EXTENSIONS.get(name).map(|ext| ext.display_name.to_string()).unwrap_or_else(|| name.to_string())

Copilot uses AI. Check for mistakes.

pub fn format_subagent_tool_call_message(subagent_id: &str, tool_name: &str) -> String {
Expand Down
Loading