tui: DocView full-screen scroll view; plan approval opens it instead of printing the plan in chat
This commit is contained in:
1 parent
531919a23c
commit
a5c7b580ea
4 files changed
+171
-20
No files matched your search
@@ -337,7 +337,7 @@ impl Tool for ExitPlan {
|
||||
json!({"type":"object","properties":{"plan":{"type":"string"}},"required":["plan"]}),
|
||||
)
|
||||
}
|
||||
async fn call(&self, _: Value, cx: &ToolCtx) -> ToolResult {
|
||||
async fn call(&self, a: Value, cx: &ToolCtx) -> ToolResult {
|
||||
let on = || cx.state.allow.lock().unwrap_or_else(|e| e.into_inner());
|
||||
if !on().plan_on() {
|
||||
return ToolResult::ok("not in plan mode; just do the work");
|
||||
@@ -353,7 +353,7 @@ impl Tool for ExitPlan {
|
||||
],
|
||||
multi: false,
|
||||
other: true,
|
||||
plan: None,
|
||||
plan: a["plan"].as_str().map(Into::into),
|
||||
};
|
||||
match cx.state.choose(q).await {
|
||||
Ok(Some(v)) if v.first().is_some_and(|s| s == "Implement") => {
|
||||
|
||||
Reference in new issue
Block a user