From 343f2a8a6148b8004d6f4d74fb779b4f30c9686a Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 15 Nov 2026 03:11:22 +0100 Subject: M1-M5: sessions, six tools, approvals, prompt, Ctrl-C, target gate - append-only JSONL sessions with --continue/--session; reasoning stored, stripped on replay - read/write/edit/grep/glob + bash with timeout and capped output - diff-preview approval for the first edit of a session, per-call approval for bash - system prompt frozen per session with AGENTS.md snapshot and change warning - SIGINT aborts the turn, second Ctrl-C exits - glibc gate ignores weak symbols; verified in linux/386 debian:12 - acceptance test (calculator in C) passes on both x86-64 and i386 --- tests/mock.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/mock.rs') diff --git a/tests/mock.rs b/tests/mock.rs index 80d965b..52dec7c 100644 --- a/tests/mock.rs +++ b/tests/mock.rs @@ -73,6 +73,7 @@ fn config(base_url: String) -> Config { api_key: "test-key".into(), model: "test-model".into(), session: "testsession".into(), + yolo: true, } } @@ -94,6 +95,7 @@ fn streams_text_reasoning_and_usage() { let outcome = provider::chat( &config(base), &[json!({ "role": "user", "content": "hi" })], + &[], &AtomicBool::new(false), &mut sink, ) @@ -133,6 +135,7 @@ fn assembles_tool_call_arguments_byte_for_byte() { let outcome = provider::chat( &config(base), &[json!({ "role": "user", "content": "read a.txt" })], + &[], &AtomicBool::new(false), &mut sink, ) @@ -161,6 +164,7 @@ fn surfaces_provider_error_text() { let error = provider::chat( &config(base), &[json!({ "role": "user", "content": "hi" })], + &[], &AtomicBool::new(false), &mut sink, ) @@ -184,6 +188,7 @@ fn honours_a_cancelled_turn() { let error = provider::chat( &config(base), &[json!({ "role": "user", "content": "hi" })], + &[], &AtomicBool::new(true), &mut sink, ) -- cgit v1.2.3