Clean up tool output formatting
- Shell: "✅ Command executed successfully" → "⚡️ ran successfully" - Write file: Remove ✏️ emoji, use plain "wrote N lines | M chars"
This commit is contained in:
@@ -343,7 +343,7 @@ pub async fn execute_write_file<W: UiWriter>(
|
||||
format!("{}", char_count)
|
||||
};
|
||||
Ok(format!(
|
||||
"✅ wrote {} lines | {} chars",
|
||||
"wrote {} lines | {} chars",
|
||||
line_count, char_display
|
||||
))
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ pub async fn execute_shell<W: UiWriter>(tool_call: &ToolCall, ctx: &ToolContext<
|
||||
Ok(result) => {
|
||||
if result.success {
|
||||
Ok(if result.stdout.is_empty() {
|
||||
"✅ Command executed successfully".to_string()
|
||||
"⚡️ ran successfully".to_string()
|
||||
} else {
|
||||
result.stdout.trim().to_string()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user