feat: add auto-continue support to all contexts

This commit is contained in:
2026-05-08 12:02:10 -06:00
parent ca52629a24
commit b308c39d6d
11 changed files with 397 additions and 60 deletions
+8 -2
View File
@@ -94,8 +94,14 @@ pub fn handle_todo_tool(ctx: &mut RequestContext, cmd_name: &str, args: &Value)
.strip_prefix(TODO_FUNCTION_PREFIX)
.unwrap_or(cmd_name);
if ctx.agent.is_none() {
bail!("No active agent");
if !ctx.app.config.function_calling_support {
bail!("Cannot use todo tools: function calling is disabled.");
}
let auto_config = ctx.auto_continue_config();
if !auto_config.enabled {
bail!(
"Auto-continue is not enabled. Set 'auto_continue: true' in your config to use todo tools."
);
}
match action {