Skip to content

Commit a259f8b

Browse files
committed
first commit
1 parent a275492 commit a259f8b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2166,7 +2166,7 @@ impl ChatSession {
21662166
}
21672167
tool_use.accepted = true;
21682168

2169-
return Ok(ChatState::ExecuteTools);
2169+
return Ok(ChatState::ExecuteTools); //REMOVEMEBUTIMPT
21702170
}
21712171
} else if !self.pending_prompts.is_empty() {
21722172
let prompts = self.pending_prompts.drain(0..).collect();

crates/chat-cli/src/cli/chat/prompt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub const COMMANDS: &[&str] = &[
130130
"/context rm",
131131
"/context clear",
132132
"/hooks",
133-
"/hooks help",
133+
// "/hooks help", // currently not implemented
134134
"/hooks add",
135135
"/hooks rm",
136136
"/hooks enable",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub struct ExecuteCommand {
4747
pub summary: Option<String>,
4848
}
4949

50-
impl ExecuteCommand {
50+
impl ExecuteCommand { //REMOVEMEBUTIMPT actual tool call verification
5151
pub fn requires_acceptance(&self, allowed_commands: Option<&Vec<String>>, allow_read_only: bool) -> bool {
5252
// Always require acceptance for multi-line commands.
5353
if self.command.contains("\n") || self.command.contains("\r") {
@@ -294,7 +294,7 @@ mod tests {
294294
};
295295

296296
#[test]
297-
fn test_requires_acceptance_for_readonly_commands() {
297+
fn test_requires_acceptance_for_readonly_commands() { //REMOVEMEBUTIMPT tests unit tests you should write some
298298
let cmds = &[
299299
// Safe commands
300300
("ls ~", false),
@@ -442,7 +442,7 @@ mod tests {
442442
}
443443

444444
#[tokio::test]
445-
async fn test_eval_perm() {
445+
async fn test_eval_perm() {
446446
let tool_name = if cfg!(windows) { "execute_cmd" } else { "execute_bash" };
447447
let mut agent = Agent {
448448
name: "test_agent".to_string(),

0 commit comments

Comments
 (0)