aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-18 12:34:33 +0100
committersalmonik <salmonik@tuta.io>2026-11-18 12:34:33 +0100
commit45d0d3c5f431688aa9dfbd6a4214256d6fe64122 (patch)
tree862ca7949b0e6c1c8084f2fe7431bfa56364d8fc /src/ui.rs
parent0.9.1: correctness fixes from the audit (diff)
downloadagent686-45d0d3c5f431688aa9dfbd6a4214256d6fe64122.tar.gz
agent686-45d0d3c5f431688aa9dfbd6a4214256d6fe64122.zip
0.9.2: doc accuracy and UX fixes from the review
- missing key exits 1, consistent with --doctor - HTML error bodies get a one-line message - no unapprovable diff printed on a non-terminal - weak GLIBC_2.39 fix covers x86_64 gnu as well as i686 - README/PLAN/CHANGELOG brought in line with the actual binary
Diffstat (limited to 'src/ui.rs')
-rw-r--r--src/ui.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui.rs b/src/ui.rs
index fe0264b..1d59ac4 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -269,6 +269,10 @@ impl Approver {
269 if self.yolo || self.edits_allowed { 269 if self.yolo || self.edits_allowed {
270 return true; 270 return true;
271 } 271 }
272 // No point showing a diff that no one is present to approve.
273 if !self.interactive {
274 return false;
275 }
272 println!("{preview}"); 276 println!("{preview}");
273 // The path is already on the tool line above. 277 // The path is already on the tool line above.
274 let _ = path; 278 let _ = path;