feat: remove InsertChar action and inline character handling; streamline input processing and autocomplete triggers

This commit is contained in:
asepharyana
2026-07-12 12:02:45 +07:00
parent ac99835eb4
commit 55bcfda0d6
5 changed files with 16 additions and 22 deletions
+3 -2
View File
@@ -65,8 +65,9 @@ impl Tool for Bash {
.to_string();
let _description = args.get("description").and_then(|v| v.as_str()).unwrap_or("");
let timeout_ms = args.get("timeout").and_then(|v| v.as_u64()).unwrap_or(120000).min(600000);
super::shell_filter::credentials::check_credential_read(&cmd)
.map_err(|e| anyhow!("blocked: {}", e))?;
// Only gate destructive git operations; credential reads are allowed
// locally since the AI needs access, and the real threat is committing
// secrets to a public repo (handled by git pre-commit hooks / user).
super::shell_filter::git::check_git_destructive(&cmd)
.map_err(|e| anyhow!("blocked: {}", e))?;
let run_in_background = args.get("run_in_background").and_then(|v| v.as_bool()).unwrap_or(false);