From 226c44dc770dd0ea42e322af4d0edd6c14ce14db Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 18 Nov 2026 12:45:05 +0100 Subject: 0.11.0: /undo via git checkpoints, /compact, provider presets, leniency, system CA - /undo resets to a git checkpoint taken before each turn - /compact summarises and rewrites the transcript (ADR 0003, the one sanctioned rewrite) - --provider presets for six OpenAI-compatible gateways, local ones lenient by default - --lenient and --system-ca - proxies already honoured via ureq; documented --- tests/loop.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/loop.rs') diff --git a/tests/loop.rs b/tests/loop.rs index e913302..8c913cd 100644 --- a/tests/loop.rs +++ b/tests/loop.rs @@ -99,6 +99,8 @@ fn runs_a_tool_call_then_finishes_and_records_every_message() { model: "test-model".into(), session: session.id.clone(), yolo: true, + lenient: false, + system_ca: false, }; let mut history = agent::new_history(system); let mut approver = Approver::new(true); @@ -170,6 +172,8 @@ fn a_denied_tool_call_is_returned_as_data() { model: "test-model".into(), session: session.id.clone(), yolo: false, + lenient: false, + system_ca: false, }; let mut history = agent::new_history(system); // Not a terminal, so the approver must deny rather than block. @@ -238,6 +242,8 @@ fn aborting_between_tool_calls_answers_every_call() { model: "test-model".into(), session: session.id.clone(), yolo: true, + lenient: false, + system_ca: false, }; let mut history = agent::new_history(system); let mut approver = Approver::new(true); @@ -313,6 +319,8 @@ fn opening_a_session_with_unanswered_calls_repairs_it() { model: "test-model".into(), session: session.id.clone(), yolo: true, + lenient: false, + system_ca: false, }; let mut approver = Approver::new(true); agent::run_turn( @@ -367,6 +375,8 @@ fn an_empty_bash_call_is_never_approved() { model: "test-model".into(), session: session.id.clone(), yolo: false, + lenient: false, + system_ca: false, }; let mut history = agent::new_history(system); // Not a terminal: if this reaches the approval path it is denied, which the @@ -421,6 +431,8 @@ fn a_tool_call_with_no_arguments_is_reported_to_the_model() { model: "test-model".into(), session: session.id.clone(), yolo: false, + lenient: false, + system_ca: false, }; let mut history = agent::new_history(system); let mut approver = Approver::new(false); @@ -475,6 +487,8 @@ fn a_wrong_argument_key_names_both_keys() { model: "test-model".into(), session: session.id.clone(), yolo: false, + lenient: false, + system_ca: false, }; let mut history = agent::new_history(system); let mut approver = Approver::new(false); -- cgit v1.2.3