diff options
| author | salmonik <salmon@2137697.xyz> | 2026-11-22 18:58:26 +0100 |
|---|---|---|
| committer | salmonik <salmon@2137697.xyz> | 2026-11-22 18:58:26 +0100 |
| commit | 7c035acc6e282cdbaa3b0060a528660fa0dba0d4 (patch) | |
| tree | 0998222677041f58b2759adc99d3515b8db2d404 /src/ui.rs | |
| parent | 0.12.0: provider is a type + URL, plus a config file (diff) | |
| download | agent686-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 '')
| -rw-r--r-- | src/ui.rs | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -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(), |
