permit: allow all edits per session, /yolo #131

Merged
hermes merged 3 commits from feat/allow-edits-yolo into main 2026-10-06 12:57:00 +00:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit b4e9f4da73 - Show all commits

No files matched your search

+5 -1
View File
@@ -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" => {
+1 -1
View File
@@ -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)