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:
Dhanji R. Prasanna
2026-01-14 19:42:54 +05:30
parent 9ef064a041
commit 38828c7757
5 changed files with 48 additions and 10 deletions

View File

@@ -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
))
}

View File

@@ -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()
})