summaryrefslogtreecommitdiffstats
path: root/src/ui.rs
diff options
context:
space:
mode:
authorsalmonik <salmon@2137697.xyz>2026-11-22 18:58:26 +0100
committersalmonik <salmon@2137697.xyz>2026-11-22 18:58:26 +0100
commit7c035acc6e282cdbaa3b0060a528660fa0dba0d4 (patch)
tree0998222677041f58b2759adc99d3515b8db2d404 /src/ui.rs
parent0.12.0: provider is a type + URL, plus a config file (diff)
downloadagent686-7c035acc6e282cdbaa3b0060a528660fa0dba0d4.tar.gz
agent686-7c035acc6e282cdbaa3b0060a528660fa0dba0d4.zip
0.12.1: accept `command` as an alias for `cmd` in bash
A field report showed ~40% of bash calls died on a one-word slip (command vs cmd); the alias removes the failure class instead of improving the error for it.
Diffstat (limited to 'src/ui.rs')
-rw-r--r--src/ui.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui.rs b/src/ui.rs
index 1d59ac4..e778eee 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -113,6 +113,7 @@ pub fn tool_line(label: &str, name: &str, args: &serde_json::Value, include_deta
113 let detail = match name { 113 let detail = match name {
114 "bash" => args 114 "bash" => args
115 .get("cmd") 115 .get("cmd")
116 .or_else(|| args.get("command"))
116 .and_then(|v| v.as_str()) 117 .and_then(|v| v.as_str())
117 .unwrap_or("") 118 .unwrap_or("")
118 .to_string(), 119 .to_string(),