From b4e9f4da732ad334806b749a457b9bc2e8614c9a Mon Sep 17 00:00:00 2001 From: hermes Date: Tue, 6 Oct 2026 12:50:02 +0000 Subject: [PATCH] fmt; smoke test expects edits option on write prompt --- crates/hx-tui/src/lib.rs | 6 +++++- tests/tui_smoke.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/hx-tui/src/lib.rs b/crates/hx-tui/src/lib.rs index 55da172..5d4e2ee 100644 --- a/crates/hx-tui/src/lib.rs +++ b/crates/hx-tui/src/lib.rs @@ -1034,7 +1034,11 @@ async fn submit(app: &mut App, mut line: String, c: &Ctx<'_>) { .lock() .unwrap_or_else(|e| e.into_inner()) .toggle_yolo(); - let m = if on { "yolo on: nothing asks" } else { "yolo off" }; + let m = if on { + "yolo on: nothing asks" + } else { + "yolo off" + }; app.t.push(Item::Info(m.into())); } "lsp" => { diff --git a/tests/tui_smoke.py b/tests/tui_smoke.py index 4bf1a3d..14b3947 100644 --- a/tests/tui_smoke.py +++ b/tests/tui_smoke.py @@ -67,7 +67,7 @@ check("tab completion", "es.md") send(b"\x15") # ctrl-u send(b"make hello.txt"); send(b"\r", 2) check("permission prompt", "permission") -check("allow always rule", "allow always: write") +check("allow all edits option", "allow all edits this session") send(b"y", 2) check("second prompt for bash", "allow always: sort *") send(b"y", 3)