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

+1 -1
View File
@@ -1016,7 +1016,7 @@ async fn main() -> Result<()> {
{
// children get the parent's tools as of now (no `task`, so no recursion)
let mut general = agent.tools.clone();
general.retain(|n| n != "ask_user");
general.retain(|n| n != "ask_user" && n != "exit_plan");
let mut explore = agent.tools.clone();
explore.retain(|n| hx_core::subagent::EXPLORE_TOOLS.contains(&n));
let role = |model: String, tools, base: &str| hx_core::subagent::Role {