diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-15 15:43:07 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-15 15:43:07 +0100 |
| commit | d48aa4f0bce28159b6c5ee6bd0085a7f5a82e962 (patch) | |
| tree | 464c7290c0ac16237353ea059f932979a3e197ce /src/ui.rs | |
| parent | 0.4.5: CLI validation, instruction scope, resume context, prompt hygiene (diff) | |
| download | agent686-d48aa4f0bce28159b6c5ee6bd0085a7f5a82e962.tar.gz agent686-d48aa4f0bce28159b6c5ee6bd0085a7f5a82e962.zip | |
0.5.0: visible step counter, one client per turn, docs corrected
Also fixes a 32-bit-only rlim_t mismatch found by building the target.
Diffstat (limited to '')
| -rw-r--r-- | src/ui.rs | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -83,7 +83,7 @@ impl Sink for Renderer { | |||
| 83 | } | 83 | } |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | pub fn tool_line(name: &str, args: &serde_json::Value) { | 86 | pub fn tool_line(step: usize, name: &str, args: &serde_json::Value) { |
| 87 | let detail = match name { | 87 | let detail = match name { |
| 88 | "bash" => args | 88 | "bash" => args |
| 89 | .get("cmd") | 89 | .get("cmd") |
| @@ -106,7 +106,11 @@ pub fn tool_line(name: &str, args: &serde_json::Value) { | |||
| 106 | .unwrap_or("") | 106 | .unwrap_or("") |
| 107 | .to_string(), | 107 | .to_string(), |
| 108 | }; | 108 | }; |
| 109 | println!("{} {}", paint("1;36", &format!("● {name}")), detail); | 109 | println!( |
| 110 | "{} {}", | ||
| 111 | paint("1;36", &format!("● [{step}] {name}")), | ||
| 112 | detail | ||
| 113 | ); | ||
| 110 | let _ = std::io::stdout().flush(); | 114 | let _ = std::io::stdout().flush(); |
| 111 | } | 115 | } |
| 112 | 116 | ||
