File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
crates/chat-cli/src/cli/chat Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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 ( ) ,
You can’t perform that action at this time.
0 commit comments