plan mode: /plan makes bash/write/edit read-only; exit_plan shows the full plan for approval

This commit is contained in:
hermes committed 2026-11-14 11:36:31 +00:00
1 parent 1da3d52190
commit 36e99fc8af
7 files changed
+135 -3

No files matched your search

+7
View File
@@ -351,6 +351,13 @@ fn render(it: &Item, expanded: bool, width: usize, out: &mut Vec<Line<'static>>)
Item::Info(s) => out.push(Line::styled(format!("{} {s}", th.sym.info), th.dim())),
Item::Lens(texts) => lens_block(texts, expanded, width, out),
Item::Error(s) => out.push(Line::styled(format!("{} {s}", th.sym.err), th.err())),
Item::Tool { name, args, .. } if name == "exit_plan" => {
let mut md = vec![];
markdown(args["plan"].as_str().unwrap_or_default(), &mut md);
out.push(Line::styled(th.rule("plan", width), th.accent()));
lead(md, " ", th.plain(), out);
out.push(Line::styled(th.rule("", width), th.dim()));
}
Item::Tool {
name,
args,