Ask parallel permission prompts one by one; add allow-all-edits option

This commit is contained in:
hermes committed 2026-10-06 12:08:27 +00:00
1 parent 6f951ad7f8
commit 49be5673bd
4 files changed
+42 -8

No files matched your search

+2
View File
@@ -59,6 +59,8 @@ pub struct State {
pub permit: std::sync::OnceLock<permit::Permit>,
/// Rules the user allowed for good.
pub allow: Mutex<permit::Allow>,
/// Serializes permission prompts: parallel tool calls are asked one by one.
pub asking: tokio::sync::Mutex<()>,
/// Every write/edit this session, for `/review`.
pub edits: Mutex<Vec<permit::FileEdit>>,
/// Same for multiple-choice questions.