diff options
Diffstat (limited to 'tests/loop.rs')
| -rw-r--r-- | tests/loop.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/loop.rs b/tests/loop.rs index 8c913cd..7e6086f 100644 --- a/tests/loop.rs +++ b/tests/loop.rs | |||
| @@ -101,6 +101,9 @@ fn runs_a_tool_call_then_finishes_and_records_every_message() { | |||
| 101 | yolo: true, | 101 | yolo: true, |
| 102 | lenient: false, | 102 | lenient: false, |
| 103 | system_ca: false, | 103 | system_ca: false, |
| 104 | provider: agent686::config::Provider::OpenCode, | ||
| 105 | allow_home: false, | ||
| 106 | allow_nogit: false, | ||
| 104 | }; | 107 | }; |
| 105 | let mut history = agent::new_history(system); | 108 | let mut history = agent::new_history(system); |
| 106 | let mut approver = Approver::new(true); | 109 | let mut approver = Approver::new(true); |
| @@ -174,6 +177,9 @@ fn a_denied_tool_call_is_returned_as_data() { | |||
| 174 | yolo: false, | 177 | yolo: false, |
| 175 | lenient: false, | 178 | lenient: false, |
| 176 | system_ca: false, | 179 | system_ca: false, |
| 180 | provider: agent686::config::Provider::OpenCode, | ||
| 181 | allow_home: false, | ||
| 182 | allow_nogit: false, | ||
| 177 | }; | 183 | }; |
| 178 | let mut history = agent::new_history(system); | 184 | let mut history = agent::new_history(system); |
| 179 | // Not a terminal, so the approver must deny rather than block. | 185 | // Not a terminal, so the approver must deny rather than block. |
| @@ -244,6 +250,9 @@ fn aborting_between_tool_calls_answers_every_call() { | |||
| 244 | yolo: true, | 250 | yolo: true, |
| 245 | lenient: false, | 251 | lenient: false, |
| 246 | system_ca: false, | 252 | system_ca: false, |
| 253 | provider: agent686::config::Provider::OpenCode, | ||
| 254 | allow_home: false, | ||
| 255 | allow_nogit: false, | ||
| 247 | }; | 256 | }; |
| 248 | let mut history = agent::new_history(system); | 257 | let mut history = agent::new_history(system); |
| 249 | let mut approver = Approver::new(true); | 258 | let mut approver = Approver::new(true); |
| @@ -321,6 +330,9 @@ fn opening_a_session_with_unanswered_calls_repairs_it() { | |||
| 321 | yolo: true, | 330 | yolo: true, |
| 322 | lenient: false, | 331 | lenient: false, |
| 323 | system_ca: false, | 332 | system_ca: false, |
| 333 | provider: agent686::config::Provider::OpenCode, | ||
| 334 | allow_home: false, | ||
| 335 | allow_nogit: false, | ||
| 324 | }; | 336 | }; |
| 325 | let mut approver = Approver::new(true); | 337 | let mut approver = Approver::new(true); |
| 326 | agent::run_turn( | 338 | agent::run_turn( |
| @@ -377,6 +389,9 @@ fn an_empty_bash_call_is_never_approved() { | |||
| 377 | yolo: false, | 389 | yolo: false, |
| 378 | lenient: false, | 390 | lenient: false, |
| 379 | system_ca: false, | 391 | system_ca: false, |
| 392 | provider: agent686::config::Provider::OpenCode, | ||
| 393 | allow_home: false, | ||
| 394 | allow_nogit: false, | ||
| 380 | }; | 395 | }; |
| 381 | let mut history = agent::new_history(system); | 396 | let mut history = agent::new_history(system); |
| 382 | // Not a terminal: if this reaches the approval path it is denied, which the | 397 | // Not a terminal: if this reaches the approval path it is denied, which the |
| @@ -433,6 +448,9 @@ fn a_tool_call_with_no_arguments_is_reported_to_the_model() { | |||
| 433 | yolo: false, | 448 | yolo: false, |
| 434 | lenient: false, | 449 | lenient: false, |
| 435 | system_ca: false, | 450 | system_ca: false, |
| 451 | provider: agent686::config::Provider::OpenCode, | ||
| 452 | allow_home: false, | ||
| 453 | allow_nogit: false, | ||
| 436 | }; | 454 | }; |
| 437 | let mut history = agent::new_history(system); | 455 | let mut history = agent::new_history(system); |
| 438 | let mut approver = Approver::new(false); | 456 | let mut approver = Approver::new(false); |
| @@ -489,6 +507,9 @@ fn a_wrong_argument_key_names_both_keys() { | |||
| 489 | yolo: false, | 507 | yolo: false, |
| 490 | lenient: false, | 508 | lenient: false, |
| 491 | system_ca: false, | 509 | system_ca: false, |
| 510 | provider: agent686::config::Provider::OpenCode, | ||
| 511 | allow_home: false, | ||
| 512 | allow_nogit: false, | ||
| 492 | }; | 513 | }; |
| 493 | let mut history = agent::new_history(system); | 514 | let mut history = agent::new_history(system); |
| 494 | let mut approver = Approver::new(false); | 515 | let mut approver = Approver::new(false); |
