From 3f3db9ce2622c47fdd7a15128d6705e59586bfca Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 2 Apr 2026 23:02:43 -0400 Subject: [PATCH] increase log read_tail from 2MB to 8MB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Large tool results (memory renders, bash output) consume most of the 2MB budget — only 37 entries loaded from a 527-line log. 8MB captures ~300 entries, giving compact() enough conversation to work with. Co-Authored-By: Proof of Concept --- src/agent/runner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/runner.rs b/src/agent/runner.rs index 9ea1778..6312bac 100644 --- a/src/agent/runner.rs +++ b/src/agent/runner.rs @@ -985,7 +985,7 @@ impl Agent { /// Returns true if the log had content to restore. pub fn restore_from_log(&mut self) -> bool { let entries = match &self.conversation_log { - Some(log) => match log.read_tail(2 * 1024 * 1024) { + Some(log) => match log.read_tail(8 * 1024 * 1024) { Ok(entries) if !entries.is_empty() => entries, _ => return false, },