Skip to content

Commit 69e86e8

Browse files
committed
Add resource tool to DEFAULT_APPROVE and NATIVE_TOOLS
- Add 'resource' to DEFAULT_APPROVE so it's trusted by default - Replace 'context' with 'resource' in NATIVE_TOOLS array - Fix 'resource tool not allowed' error for LLM usage
1 parent 969b8c0 commit 69e86e8

File tree

1 file changed

+2
-2
lines changed
  • crates/chat-cli/src/cli/chat/tools

1 file changed

+2
-2
lines changed

crates/chat-cli/src/cli/chat/tools/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ use crate::cli::agent::{
5353
use crate::cli::chat::line_tracker::FileLineTracker;
5454
use crate::os::Os;
5555

56-
pub const DEFAULT_APPROVE: [&str; 1] = ["fs_read"];
56+
pub const DEFAULT_APPROVE: [&str; 2] = ["fs_read", "resource"];
5757
pub const NATIVE_TOOLS: [&str; 7] = [
5858
"fs_read",
5959
"fs_write",
@@ -63,7 +63,7 @@ pub const NATIVE_TOOLS: [&str; 7] = [
6363
"execute_bash",
6464
"use_aws",
6565
"gh_issue",
66-
"context",
66+
"resource",
6767
"thinking",
6868
];
6969

0 commit comments

Comments
 (0)